devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: configs: at91: sama7: Enable crypto IPs and software algs
@ 2022-02-04 13:59 Tudor Ambarus
  2022-02-24 18:54 ` Nicolas Ferre
  0 siblings, 1 reply; 2+ messages in thread
From: Tudor Ambarus @ 2022-02-04 13:59 UTC (permalink / raw)
  To: nicolas.ferre, claudiu.beznea, alexandre.belloni
  Cc: linux-arm-kernel, linux-kernel, devicetree, robh+dt,
	Tudor Ambarus

Similar to sama5_defconfig, enable hardware acceleration for the
sama7 crypto IPs, enable crypto software implementations in case
the crypto IPs need a fallback to them, and enable the hash and
skcipher user interfaces in case one wants to offload the crypto
algs to the sama7 crypto IPs.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index c12278174579..d6e27b837f88 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -196,7 +196,19 @@ CONFIG_NLS_CODEPAGE_850=y
 CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
 CONFIG_LSM="N"
-# CONFIG_CRYPTO_HW is not set
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_GCM=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CFB=y
+CONFIG_CRYPTO_OFB=y
+CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_DES=y
+CONFIG_CRYPTO_USER_API_HASH=m
+CONFIG_CRYPTO_USER_API_SKCIPHER=m
+CONFIG_CRYPTO_DEV_ATMEL_AES=y
+CONFIG_CRYPTO_DEV_ATMEL_TDES=y
+CONFIG_CRYPTO_DEV_ATMEL_SHA=y
 CONFIG_CRC_CCITT=y
 CONFIG_CRC_ITU_T=y
 CONFIG_DMA_CMA=y
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: configs: at91: sama7: Enable crypto IPs and software algs
  2022-02-04 13:59 [PATCH] ARM: configs: at91: sama7: Enable crypto IPs and software algs Tudor Ambarus
@ 2022-02-24 18:54 ` Nicolas Ferre
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2022-02-24 18:54 UTC (permalink / raw)
  To: Tudor Ambarus, claudiu.beznea, alexandre.belloni
  Cc: linux-arm-kernel, linux-kernel, devicetree, robh+dt

On 04/02/2022 at 14:59, Tudor Ambarus wrote:
> Similar to sama5_defconfig, enable hardware acceleration for the
> sama7 crypto IPs, enable crypto software implementations in case
> the crypto IPs need a fallback to them, and enable the hash and
> skcipher user interfaces in case one wants to offload the crypto
> algs to the sama7 crypto IPs.
> 
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Queued for 5.18 in at91-defconfig

Regards,
   Nicolas

> ---
>   arch/arm/configs/sama7_defconfig | 14 +++++++++++++-
>   1 file changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
> index c12278174579..d6e27b837f88 100644
> --- a/arch/arm/configs/sama7_defconfig
> +++ b/arch/arm/configs/sama7_defconfig
> @@ -196,7 +196,19 @@ CONFIG_NLS_CODEPAGE_850=y
>   CONFIG_NLS_ISO8859_1=y
>   CONFIG_NLS_UTF8=y
>   CONFIG_LSM="N"
> -# CONFIG_CRYPTO_HW is not set
> +CONFIG_CRYPTO_AUTHENC=y
> +CONFIG_CRYPTO_GCM=y
> +CONFIG_CRYPTO_CBC=y
> +CONFIG_CRYPTO_CFB=y
> +CONFIG_CRYPTO_OFB=y
> +CONFIG_CRYPTO_XTS=y
> +CONFIG_CRYPTO_SHA1=y
> +CONFIG_CRYPTO_DES=y
> +CONFIG_CRYPTO_USER_API_HASH=m
> +CONFIG_CRYPTO_USER_API_SKCIPHER=m
> +CONFIG_CRYPTO_DEV_ATMEL_AES=y
> +CONFIG_CRYPTO_DEV_ATMEL_TDES=y
> +CONFIG_CRYPTO_DEV_ATMEL_SHA=y
>   CONFIG_CRC_CCITT=y
>   CONFIG_CRC_ITU_T=y
>   CONFIG_DMA_CMA=y


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-24 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-04 13:59 [PATCH] ARM: configs: at91: sama7: Enable crypto IPs and software algs Tudor Ambarus
2022-02-24 18:54 ` Nicolas Ferre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).