[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YzNtkiR/dD0aEZrv@aurel32.net>
Date: Tue, 27 Sep 2022 23:39:30 +0200
From: Aurelien Jarno <aurelien@...el32.net>
To: Corentin Labbe <clabbe@...libre.com>
Cc: heiko@...ech.de, davem@...emloft.net, herbert@...dor.apana.org.au,
krzysztof.kozlowski+dt@...aro.org, robh+dt@...nel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-rockchip@...ts.infradead.org
Subject: Re: [PATCH RFT 4/5] crypto: rockchip: support the new crypto IP for
rk3568/rk3588
On 2022-09-27 08:00, Corentin Labbe wrote:
> Rockchip rk3568 and rk3588 have a common crypto offloader IP.
> This driver adds support for it.
>
> Signed-off-by: Corentin Labbe <clabbe@...libre.com>
> ---
> drivers/crypto/rockchip/Kconfig | 28 +
> drivers/crypto/rockchip/Makefile | 5 +
> drivers/crypto/rockchip/rk3588_crypto.c | 646 ++++++++++++++++++
> drivers/crypto/rockchip/rk3588_crypto.h | 221 ++++++
> drivers/crypto/rockchip/rk3588_crypto_ahash.c | 346 ++++++++++
> .../crypto/rockchip/rk3588_crypto_skcipher.c | 340 +++++++++
> 6 files changed, 1586 insertions(+)
> create mode 100644 drivers/crypto/rockchip/rk3588_crypto.c
> create mode 100644 drivers/crypto/rockchip/rk3588_crypto.h
> create mode 100644 drivers/crypto/rockchip/rk3588_crypto_ahash.c
> create mode 100644 drivers/crypto/rockchip/rk3588_crypto_skcipher.c
>
> diff --git a/drivers/crypto/rockchip/Kconfig b/drivers/crypto/rockchip/Kconfig
> index 1010d897d9ef..84ca1081fd0c 100644
> --- a/drivers/crypto/rockchip/Kconfig
> +++ b/drivers/crypto/rockchip/Kconfig
> @@ -26,3 +26,31 @@ config CRYPTO_DEV_ROCKCHIP_DEBUG
> Say y to enable Rockchip crypto debug stats.
> This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
> the number of requests per algorithm and other internal stats.
> +
> +config CRYPTO_DEV_ROCKCHIP2
> + tristate "Rockchip's cryptographic offloader V2"
> + depends on OF && ARCH_ROCKCHIP
> + depends on PM
> + select CRYPTO_ECB
> + select CRYPTO_CBC
> + select CRYPTO_AES
> + select CRYPTO_MD5
> + select CRYPTO_SHA1
> + select CRYPTO_SHA256
> + select CRYPTO_SM3
That should be CRYPTO_SM3_GENERIC
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@...el32.net http://www.aurel32.net
Powered by blists - more mailing lists