@@ -666,6 +666,19 @@ config CRYPTO_DEV_IMGTEC_HASH
hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
hashing algorithms.
+config CRYPTO_DEV_REALTEK
+ tristate "Realtek's Cryptographic Engine driver"
+ depends on OF && MIPS && CPU_BIG_ENDIAN
+ select CRYPTO_MD5
+ select CRYPTO_SHA1
+ select CRYPTO_AES
+ help
+ This driver adds support for the Realtek crypto engine. It provides
+ hardware accelerated AES, SHA1 & MD5 algorithms. It is included in
+ SoCs of the RTL838x series, such as RTL8380, RTL8381, RTL8382, as
+ well as SoCs from the RTL930x series, such as RTL9301, RTL9302 and
+ RTL9303.
+
config CRYPTO_DEV_ROCKCHIP
tristate "Rockchip's Cryptographic Engine driver"
depends on OF && ARCH_ROCKCHIP
@@ -36,6 +36,7 @@ obj-$(CONFIG_CRYPTO_DEV_PPC4XX) += amcc/
obj-$(CONFIG_CRYPTO_DEV_QAT) += qat/
obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
obj-$(CONFIG_CRYPTO_DEV_QCOM_RNG) += qcom-rng.o
+obj-$(CONFIG_CRYPTO_DEV_REALTEK) += realtek/
obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/
obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
obj-$(CONFIG_CRYPTO_DEV_SA2UL) += sa2ul.o
new file mode 100644
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_CRYPTO_DEV_REALTEK) += rtl_crypto.o
+rtl_crypto-objs := realtek_crypto.o \
+ realtek_crypto_skcipher.o \
+ realtek_crypto_ahash.o
Add new Realtek crypto device to the kernel configuration. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> --- drivers/crypto/Kconfig | 13 +++++++++++++ drivers/crypto/Makefile | 1 + drivers/crypto/realtek/Makefile | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 drivers/crypto/realtek/Makefile -- 2.38.1