mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
106 lines
3.4 KiB
Diff
106 lines
3.4 KiB
Diff
From e8749922cdcddc6e3d3df6a94c530df863073353 Mon Sep 17 00:00:00 2001
|
|
From: Corentin Labbe <clabbe@baylibre.com>
|
|
Date: Tue, 27 Sep 2022 08:00:44 +0000
|
|
Subject: [PATCH 1/5] crypto: rockchip: move kconfig to its dedicated directory
|
|
|
|
Move all rockchip kconfig in its own subdirectory.
|
|
|
|
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
|
|
---
|
|
drivers/crypto/Kconfig | 32 ++------------------------------
|
|
drivers/crypto/Makefile | 2 +-
|
|
drivers/crypto/rockchip/Kconfig | 28 ++++++++++++++++++++++++++++
|
|
3 files changed, 31 insertions(+), 31 deletions(-)
|
|
create mode 100644 drivers/crypto/rockchip/Kconfig
|
|
|
|
--- a/drivers/crypto/Kconfig
|
|
+++ b/drivers/crypto/Kconfig
|
|
@@ -646,6 +646,8 @@ config CRYPTO_DEV_QCOM_RNG
|
|
To compile this driver as a module, choose M here. The
|
|
module will be called qcom-rng. If unsure, say N.
|
|
|
|
+source "drivers/crypto/rockchip/Kconfig"
|
|
+
|
|
config CRYPTO_DEV_VMX
|
|
bool "Support for VMX cryptographic acceleration instructions"
|
|
depends on PPC64 && VSX
|
|
@@ -666,36 +668,6 @@ config CRYPTO_DEV_IMGTEC_HASH
|
|
hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
|
|
hashing algorithms.
|
|
|
|
-config CRYPTO_DEV_ROCKCHIP
|
|
- tristate "Rockchip's Cryptographic Engine driver"
|
|
- depends on OF && ARCH_ROCKCHIP
|
|
- depends on PM
|
|
- select CRYPTO_ECB
|
|
- select CRYPTO_CBC
|
|
- select CRYPTO_DES
|
|
- select CRYPTO_AES
|
|
- select CRYPTO_ENGINE
|
|
- select CRYPTO_LIB_DES
|
|
- select CRYPTO_MD5
|
|
- select CRYPTO_SHA1
|
|
- select CRYPTO_SHA256
|
|
- select CRYPTO_HASH
|
|
- select CRYPTO_SKCIPHER
|
|
-
|
|
- help
|
|
- This driver interfaces with the hardware crypto accelerator.
|
|
- Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
|
|
-
|
|
-config CRYPTO_DEV_ROCKCHIP_DEBUG
|
|
- bool "Enable Rockchip crypto stats"
|
|
- depends on CRYPTO_DEV_ROCKCHIP
|
|
- depends on DEBUG_FS
|
|
- help
|
|
- 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_ZYNQMP_AES
|
|
tristate "Support for Xilinx ZynqMP AES hw accelerator"
|
|
depends on ZYNQMP_FIRMWARE || COMPILE_TEST
|
|
--- a/drivers/crypto/Makefile
|
|
+++ b/drivers/crypto/Makefile
|
|
@@ -35,7 +35,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_ROCKCHIP) += rockchip/
|
|
+obj-y += rockchip/
|
|
obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
|
|
obj-$(CONFIG_CRYPTO_DEV_SA2UL) += sa2ul.o
|
|
obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
|
|
--- /dev/null
|
|
+++ b/drivers/crypto/rockchip/Kconfig
|
|
@@ -0,0 +1,28 @@
|
|
+config CRYPTO_DEV_ROCKCHIP
|
|
+ tristate "Rockchip's Cryptographic Engine driver"
|
|
+ depends on OF && ARCH_ROCKCHIP
|
|
+ depends on PM
|
|
+ select CRYPTO_ECB
|
|
+ select CRYPTO_CBC
|
|
+ select CRYPTO_DES
|
|
+ select CRYPTO_AES
|
|
+ select CRYPTO_ENGINE
|
|
+ select CRYPTO_LIB_DES
|
|
+ select CRYPTO_MD5
|
|
+ select CRYPTO_SHA1
|
|
+ select CRYPTO_SHA256
|
|
+ select CRYPTO_HASH
|
|
+ select CRYPTO_SKCIPHER
|
|
+
|
|
+ help
|
|
+ This driver interfaces with the hardware crypto accelerator.
|
|
+ Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
|
|
+
|
|
+config CRYPTO_DEV_ROCKCHIP_DEBUG
|
|
+ bool "Enable Rockchip crypto stats"
|
|
+ depends on CRYPTO_DEV_ROCKCHIP
|
|
+ depends on DEBUG_FS
|
|
+ help
|
|
+ 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.
|