xref: /linux/drivers/crypto/allwinner/Kconfig (revision bba2c3615bd6cfee7456d1130f2e6b01b3f4e9ba)
1config CRYPTO_DEV_ALLWINNER
2	bool "Support for Allwinner cryptographic offloader"
3	depends on ARCH_SUNXI || COMPILE_TEST
4	default y if ARCH_SUNXI
5	help
6	  Say Y here to get to see options for Allwinner hardware crypto devices
7
8config CRYPTO_DEV_SUN4I_SS
9	tristate "Support for Allwinner Security System cryptographic accelerator"
10	depends on ARCH_SUNXI
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_SKCIPHER
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
27config CRYPTO_DEV_SUN4I_SS_DEBUG
28	bool "Enable sun4i-ss stats"
29	depends on CRYPTO_DEV_SUN4I_SS
30	depends on DEBUG_FS
31	help
32	  Say y to enable sun4i-ss debug stats.
33	  This will create /sys/kernel/debug/sun4i-ss/stats for displaying
34	  the number of requests per algorithm.
35
36config CRYPTO_DEV_SUN8I_CE
37	tristate "Support for Allwinner Crypto Engine cryptographic offloader"
38	select CRYPTO_SKCIPHER
39	select CRYPTO_ENGINE
40	select CRYPTO_ECB
41	select CRYPTO_CBC
42	select CRYPTO_AES
43	select CRYPTO_DES
44	depends on CRYPTO_DEV_ALLWINNER
45	depends on PM
46	help
47	  Select y here to have support for the crypto Engine available on
48	  Allwinner SoC H2+, H3, H5, H6, R40 and A64.
49	  The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode.
50
51	  To compile this driver as a module, choose M here: the module
52	  will be called sun8i-ce.
53
54config CRYPTO_DEV_SUN8I_CE_DEBUG
55	bool "Enable sun8i-ce stats"
56	depends on CRYPTO_DEV_SUN8I_CE
57	depends on DEBUG_FS
58	help
59	  Say y to enable sun8i-ce debug stats.
60	  This will create /sys/kernel/debug/sun8i-ce/stats for displaying
61	  the number of requests per flow and per algorithm.
62
63config CRYPTO_DEV_SUN8I_CE_HASH
64	bool "Enable support for hash on sun8i-ce"
65	depends on CRYPTO_DEV_SUN8I_CE
66	select CRYPTO_MD5
67	select CRYPTO_SHA1
68	select CRYPTO_SHA256
69	select CRYPTO_SHA512
70	help
71	  Say y to enable support for hash algorithms.
72
73config CRYPTO_DEV_SUN8I_CE_PRNG
74	bool "Support for Allwinner Crypto Engine PRNG"
75	depends on CRYPTO_DEV_SUN8I_CE
76	select CRYPTO_RNG
77	help
78	  Select this option if you want to provide kernel-side support for
79	  the Pseudo-Random Number Generator found in the Crypto Engine.
80
81config CRYPTO_DEV_SUN8I_CE_TRNG
82	bool "Support for Allwinner Crypto Engine TRNG"
83	depends on CRYPTO_DEV_SUN8I_CE
84	select HW_RANDOM
85	help
86	  Select this option if you want to provide kernel-side support for
87	  the True Random Number Generator found in the Crypto Engine.
88
89config CRYPTO_DEV_SUN8I_SS
90	tristate "Support for Allwinner Security System cryptographic offloader"
91	select CRYPTO_SKCIPHER
92	select CRYPTO_ENGINE
93	select CRYPTO_ECB
94	select CRYPTO_CBC
95	select CRYPTO_AES
96	select CRYPTO_DES
97	depends on CRYPTO_DEV_ALLWINNER
98	depends on PM
99	help
100	  Select y here to have support for the Security System available on
101	  Allwinner SoC A80, A83T.
102	  The Security System handle AES/3DES ciphers in ECB/CBC mode.
103
104	  To compile this driver as a module, choose M here: the module
105	  will be called sun8i-ss.
106
107config CRYPTO_DEV_SUN8I_SS_DEBUG
108	bool "Enable sun8i-ss stats"
109	depends on CRYPTO_DEV_SUN8I_SS
110	depends on DEBUG_FS
111	help
112	  Say y to enable sun8i-ss debug stats.
113	  This will create /sys/kernel/debug/sun8i-ss/stats for displaying
114	  the number of requests per flow and per algorithm.
115
116config CRYPTO_DEV_SUN8I_SS_PRNG
117	bool "Support for Allwinner Security System PRNG"
118	depends on CRYPTO_DEV_SUN8I_SS
119	select CRYPTO_RNG
120	help
121	  Select this option if you want to provide kernel-side support for
122	  the Pseudo-Random Number Generator found in the Security System.
123
124config CRYPTO_DEV_SUN8I_SS_HASH
125	bool "Enable support for hash on sun8i-ss"
126	depends on CRYPTO_DEV_SUN8I_SS
127	select CRYPTO_MD5
128	select CRYPTO_SHA1
129	select CRYPTO_SHA256
130	help
131	  Say y to enable support for hash algorithms.
132