Add new Realtek crypto device to the kernel configuration. Signed-off-by: Markus Stockhausen <markus.stockhausen@xxxxxx> --- 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 diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 55e75fbb658e..990a74f7ad97 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -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 diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 116de173a66c..df4b4b7d7302 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -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 diff --git a/drivers/crypto/realtek/Makefile b/drivers/crypto/realtek/Makefile new file mode 100644 index 000000000000..8d973bf1d520 --- /dev/null +++ b/drivers/crypto/realtek/Makefile @@ -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 -- 2.38.1