Skip to content

Commit 1751354

Browse files
montjoieherbertx
authored andcommitted
crypto: sun4i-ss - Move to Allwinner directory
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Acked-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 06f751b commit 1751354

11 files changed

Lines changed: 28 additions & 33 deletions

File tree

‎MAINTAINERS‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,6 @@ S: Maintained
682682
F: Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt
683683
F: drivers/cpufreq/sun50i-cpufreq-nvmem.c
684684

685-
ALLWINNER SECURITY SYSTEM
686-
M: Corentin Labbe <clabbe.montjoie@gmail.com>
687-
L: linux-crypto@vger.kernel.org
688-
S: Maintained
689-
F: drivers/crypto/sunxi-ss/
690-
691685
ALLWINNER CRYPTO DRIVERS
692686
M: Corentin Labbe <clabbe.montjoie@gmail.com>
693687
L: linux-crypto@vger.kernel.org

‎drivers/crypto/Kconfig‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -659,32 +659,6 @@ config CRYPTO_DEV_IMGTEC_HASH
659659
hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
660660
hashing algorithms.
661661

662-
config CRYPTO_DEV_SUN4I_SS
663-
tristate "Support for Allwinner Security System cryptographic accelerator"
664-
depends on ARCH_SUNXI && !64BIT
665-
depends on PM
666-
select CRYPTO_MD5
667-
select CRYPTO_SHA1
668-
select CRYPTO_AES
669-
select CRYPTO_LIB_DES
670-
select CRYPTO_BLKCIPHER
671-
help
672-
Some Allwinner SoC have a crypto accelerator named
673-
Security System. Select this if you want to use it.
674-
The Security System handle AES/DES/3DES ciphers in CBC mode
675-
and SHA1 and MD5 hash algorithms.
676-
677-
To compile this driver as a module, choose M here: the module
678-
will be called sun4i-ss.
679-
680-
config CRYPTO_DEV_SUN4I_SS_PRNG
681-
bool "Support for Allwinner Security System PRNG"
682-
depends on CRYPTO_DEV_SUN4I_SS
683-
select CRYPTO_RNG
684-
help
685-
Select this option if you want to provide kernel-side support for
686-
the Pseudo-Random Number Generator found in the Security System.
687-
688662
config CRYPTO_DEV_ROCKCHIP
689663
tristate "Rockchip's Cryptographic Engine driver"
690664
depends on OF && ARCH_ROCKCHIP

‎drivers/crypto/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/
4040
obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
4141
obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
4242
obj-$(CONFIG_ARCH_STM32) += stm32/
43-
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/
4443
obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
4544
obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
4645
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/

‎drivers/crypto/allwinner/Kconfig‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ config CRYPTO_DEV_ALLWINNER
55
help
66
Say Y here to get to see options for Allwinner hardware crypto devices
77

8+
config CRYPTO_DEV_SUN4I_SS
9+
tristate "Support for Allwinner Security System cryptographic accelerator"
10+
depends on ARCH_SUNXI && !64BIT
11+
depends on PM
12+
depends on CRYPTO_DEV_ALLWINNER
13+
select CRYPTO_MD5
14+
select CRYPTO_SHA1
15+
select CRYPTO_AES
16+
select CRYPTO_LIB_DES
17+
select CRYPTO_BLKCIPHER
18+
help
19+
Some Allwinner SoC have a crypto accelerator named
20+
Security System. Select this if you want to use it.
21+
The Security System handle AES/DES/3DES ciphers in CBC mode
22+
and SHA1 and MD5 hash algorithms.
23+
24+
To compile this driver as a module, choose M here: the module
25+
will be called sun4i-ss.
26+
27+
config CRYPTO_DEV_SUN4I_SS_PRNG
28+
bool "Support for Allwinner Security System PRNG"
29+
depends on CRYPTO_DEV_SUN4I_SS
30+
select CRYPTO_RNG
31+
help
32+
Select this option if you want to provide kernel-side support for
33+
the Pseudo-Random Number Generator found in the Security System.
34+
835
config CRYPTO_DEV_SUN8I_CE
936
tristate "Support for Allwinner Crypto Engine cryptographic offloader"
1037
select CRYPTO_BLKCIPHER

‎drivers/crypto/allwinner/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss/
12
obj-$(CONFIG_CRYPTO_DEV_SUN8I_CE) += sun8i-ce/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)