kernel: crypto: add atmel i2c hw accelerator support

Add support for Microchip / Atmel ECC/SHA/RNG hw accelerator.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/17253
(cherry picked from commit 9d434a8abf)
Link: https://github.com/openwrt/openwrt/pull/17348
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Tianling Shen 2024-10-16 16:05:40 +08:00 committed by Hauke Mehrtens
parent 738c9e5286
commit 48f9284232

View File

@ -366,6 +366,26 @@ endef
$(eval $(call KernelPackage,crypto-hmac)) $(eval $(call KernelPackage,crypto-hmac))
define KernelPackage/crypto-hw-atmel
TITLE:=Microchip / Atmel ECC/SHA/RNG hw accelerator
DEPENDS:=+kmod-i2c-core +kmod-crypto-ecdh +kmod-crypto-sha1 \
+kmod-crypto-sha256 +kmod-lib-crc16 +kmod-random-core
KCONFIG:= \
CONFIG_CRYPTO_HW=y \
CONFIG_CRYPTO_DEV_ATMEL_I2C \
CONFIG_CRYPTO_DEV_ATMEL_ECC \
CONFIG_CRYPTO_DEV_ATMEL_SHA204A
FILES:= \
$(LINUX_DIR)/drivers/crypto/atmel-i2c.ko \
$(LINUX_DIR)/drivers/crypto/atmel-ecc.ko \
$(LINUX_DIR)/drivers/crypto/atmel-sha204a.ko
AUTOLOAD:=$(call AutoLoad,09,atmel-i2c atmel-ecc atmel-sha204a)
$(call AddDepends/crypto)
endef
$(eval $(call KernelPackage,crypto-hw-atmel))
define KernelPackage/crypto-hw-ccp define KernelPackage/crypto-hw-ccp
TITLE:=AMD Cryptographic Coprocessor TITLE:=AMD Cryptographic Coprocessor
DEPENDS:= \ DEPENDS:= \