From patchwork Wed Jun 1 05:41:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Liu X-Patchwork-Id: 12866359 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3249C433F5 for ; Wed, 1 Jun 2022 05:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=f6lX6bM7M8MAApPiyaIfDm7N7NVOeltIXnN8H8ezJPg=; b=KqnYSsvKJ7nXST zUsBRjPfKW67t2uPXqrywl3KsZuu9M1YsbVr8kayA9DPrUSI3ptDONQGpmyIsDBoQCZXJ7ZbwfQig JD+1ZpJwhmM9zS59PjzaQS1y8ZmWUh1XqNAONQfoljbacDGqDgKMPbHY8nln+bscQttwW0UmZGqXp JDODOCmQFD2FE0VKOQtDMm3KLnbqXq1dsZYY3X5/RNBd0nd9Lpb+VpxRJ3wpYT117LQ5ToKtCOMEQ 0m6DzGNydEgnpFoPaf6XTNrdODLA6ncr1SSvMfQ+vhOR50mK5CKUJxVQxKrIGYiTJgEpcW4FzxaQF x8isAKY+JKPXUiDLWPjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwH9O-00DykR-DH; Wed, 01 Jun 2022 05:44:10 +0000 Received: from twspam01.aspeedtech.com ([211.20.114.71]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwH95-00DyeG-SG for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2022 05:43:53 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2515RncG027922; Wed, 1 Jun 2022 13:27:49 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Jun 2022 13:42:17 +0800 From: Neal Liu To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Joel Stanley , "Andrew Jeffery" , Johnny Huang CC: , , , , Subject: [PATCH 0/5] Add Aspeed crypto driver for hardware acceleration Date: Wed, 1 Jun 2022 13:41:59 +0800 Message-ID: <20220601054204.1522976-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 2515RncG027922 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_224352_224221_417DC89F X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Aspeed Hash and Crypto Engine (HACE) is designed to accelerate the throughput of hash data digest, encryption and decryption. These patches aim to add Aspeed hash & crypto driver support. The hash & crypto driver also pass the run-time self tests that take place at algorithm registration. Neal Liu (5): crypto: aspeed: Add HACE hash driver dt-bindings: clock: Add AST2600 HACE reset definition ARM: dts: aspeed: Add HACE device controller node dt-bindings: crypto: add documentation for aspeed hace crypto: aspeed: add HACE crypto driver .../bindings/crypto/aspeed,hace.yaml | 58 + MAINTAINERS | 7 + arch/arm/boot/dts/aspeed-g6.dtsi | 9 + drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile | 1 + drivers/crypto/aspeed/Kconfig | 38 + drivers/crypto/aspeed/Makefile | 8 + drivers/crypto/aspeed/aspeed-hace-crypto.c | 1019 +++++++++++++ drivers/crypto/aspeed/aspeed-hace-hash.c | 1335 +++++++++++++++++ drivers/crypto/aspeed/aspeed-hace.c | 305 ++++ drivers/crypto/aspeed/aspeed-hace.h | 286 ++++ include/dt-bindings/clock/ast2600-clock.h | 1 + 12 files changed, 3068 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/aspeed,hace.yaml create mode 100644 drivers/crypto/aspeed/Kconfig create mode 100644 drivers/crypto/aspeed/Makefile create mode 100644 drivers/crypto/aspeed/aspeed-hace-crypto.c create mode 100644 drivers/crypto/aspeed/aspeed-hace-hash.c create mode 100644 drivers/crypto/aspeed/aspeed-hace.c create mode 100644 drivers/crypto/aspeed/aspeed-hace.h