xref: /openbmc/linux/drivers/crypto/allwinner/Kconfig (revision 56f6d5ae)
13914b931SCorentin Labbeconfig CRYPTO_DEV_ALLWINNER
23914b931SCorentin Labbe	bool "Support for Allwinner cryptographic offloader"
33914b931SCorentin Labbe	depends on ARCH_SUNXI || COMPILE_TEST
43914b931SCorentin Labbe	default y if ARCH_SUNXI
53914b931SCorentin Labbe	help
63914b931SCorentin Labbe	  Say Y here to get to see options for Allwinner hardware crypto devices
706f751b6SCorentin Labbe
817513547SCorentin Labbeconfig CRYPTO_DEV_SUN4I_SS
917513547SCorentin Labbe	tristate "Support for Allwinner Security System cryptographic accelerator"
107ca2a71dSCorentin Labbe	depends on ARCH_SUNXI
1117513547SCorentin Labbe	depends on PM
1217513547SCorentin Labbe	depends on CRYPTO_DEV_ALLWINNER
1317513547SCorentin Labbe	select CRYPTO_MD5
1417513547SCorentin Labbe	select CRYPTO_SHA1
1517513547SCorentin Labbe	select CRYPTO_AES
1617513547SCorentin Labbe	select CRYPTO_LIB_DES
17b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
1817513547SCorentin Labbe	help
1917513547SCorentin Labbe	  Some Allwinner SoC have a crypto accelerator named
2017513547SCorentin Labbe	  Security System. Select this if you want to use it.
2117513547SCorentin Labbe	  The Security System handle AES/DES/3DES ciphers in CBC mode
2217513547SCorentin Labbe	  and SHA1 and MD5 hash algorithms.
2317513547SCorentin Labbe
2417513547SCorentin Labbe	  To compile this driver as a module, choose M here: the module
2517513547SCorentin Labbe	  will be called sun4i-ss.
2617513547SCorentin Labbe
2717513547SCorentin Labbeconfig CRYPTO_DEV_SUN4I_SS_PRNG
2817513547SCorentin Labbe	bool "Support for Allwinner Security System PRNG"
2917513547SCorentin Labbe	depends on CRYPTO_DEV_SUN4I_SS
3017513547SCorentin Labbe	select CRYPTO_RNG
3117513547SCorentin Labbe	help
3217513547SCorentin Labbe	  Select this option if you want to provide kernel-side support for
3317513547SCorentin Labbe	  the Pseudo-Random Number Generator found in the Security System.
3417513547SCorentin Labbe
3506f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE
3606f751b6SCorentin Labbe	tristate "Support for Allwinner Crypto Engine cryptographic offloader"
37b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3806f751b6SCorentin Labbe	select CRYPTO_ENGINE
3906f751b6SCorentin Labbe	select CRYPTO_ECB
4006f751b6SCorentin Labbe	select CRYPTO_CBC
4106f751b6SCorentin Labbe	select CRYPTO_AES
4206f751b6SCorentin Labbe	select CRYPTO_DES
4306f751b6SCorentin Labbe	depends on CRYPTO_DEV_ALLWINNER
4406f751b6SCorentin Labbe	depends on PM
4506f751b6SCorentin Labbe	help
4606f751b6SCorentin Labbe	  Select y here to have support for the crypto Engine availlable on
4706f751b6SCorentin Labbe	  Allwinner SoC H2+, H3, H5, H6, R40 and A64.
4806f751b6SCorentin Labbe	  The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode.
4906f751b6SCorentin Labbe
5006f751b6SCorentin Labbe	  To compile this driver as a module, choose M here: the module
5106f751b6SCorentin Labbe	  will be called sun8i-ce.
5206f751b6SCorentin Labbe
5306f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_DEBUG
5406f751b6SCorentin Labbe	bool "Enable sun8i-ce stats"
5506f751b6SCorentin Labbe	depends on CRYPTO_DEV_SUN8I_CE
5606f751b6SCorentin Labbe	depends on DEBUG_FS
5706f751b6SCorentin Labbe	help
5806f751b6SCorentin Labbe	  Say y to enable sun8i-ce debug stats.
5906f751b6SCorentin Labbe	  This will create /sys/kernel/debug/sun8i-ce/stats for displaying
6006f751b6SCorentin Labbe	  the number of requests per flow and per algorithm.
61f08fccedSCorentin Labbe
6256f6d5aeSCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_HASH
6356f6d5aeSCorentin Labbe	bool "Enable support for hash on sun8i-ce"
6456f6d5aeSCorentin Labbe	depends on CRYPTO_DEV_SUN8I_CE
6556f6d5aeSCorentin Labbe	select MD5
6656f6d5aeSCorentin Labbe	select SHA1
6756f6d5aeSCorentin Labbe	select SHA256
6856f6d5aeSCorentin Labbe	select SHA512
6956f6d5aeSCorentin Labbe	help
7056f6d5aeSCorentin Labbe	  Say y to enable support for hash algorithms.
7156f6d5aeSCorentin Labbe
72f08fccedSCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS
73f08fccedSCorentin Labbe	tristate "Support for Allwinner Security System cryptographic offloader"
74b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
75f08fccedSCorentin Labbe	select CRYPTO_ENGINE
76f08fccedSCorentin Labbe	select CRYPTO_ECB
77f08fccedSCorentin Labbe	select CRYPTO_CBC
78f08fccedSCorentin Labbe	select CRYPTO_AES
79f08fccedSCorentin Labbe	select CRYPTO_DES
80f08fccedSCorentin Labbe	depends on CRYPTO_DEV_ALLWINNER
81f08fccedSCorentin Labbe	depends on PM
82f08fccedSCorentin Labbe	help
83f08fccedSCorentin Labbe	  Select y here to have support for the Security System available on
84f08fccedSCorentin Labbe	  Allwinner SoC A80, A83T.
85f08fccedSCorentin Labbe	  The Security System handle AES/3DES ciphers in ECB/CBC mode.
86f08fccedSCorentin Labbe
87f08fccedSCorentin Labbe	  To compile this driver as a module, choose M here: the module
88f08fccedSCorentin Labbe	  will be called sun8i-ss.
89f08fccedSCorentin Labbe
90f08fccedSCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_DEBUG
91f08fccedSCorentin Labbe	bool "Enable sun8i-ss stats"
92f08fccedSCorentin Labbe	depends on CRYPTO_DEV_SUN8I_SS
93f08fccedSCorentin Labbe	depends on DEBUG_FS
94f08fccedSCorentin Labbe	help
95f08fccedSCorentin Labbe	  Say y to enable sun8i-ss debug stats.
96f08fccedSCorentin Labbe	  This will create /sys/kernel/debug/sun8i-ss/stats for displaying
97f08fccedSCorentin Labbe	  the number of requests per flow and per algorithm.
98ac2614d7SCorentin Labbe
99ac2614d7SCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_PRNG
100ac2614d7SCorentin Labbe	bool "Support for Allwinner Security System PRNG"
101ac2614d7SCorentin Labbe	depends on CRYPTO_DEV_SUN8I_SS
102ac2614d7SCorentin Labbe	select CRYPTO_RNG
103ac2614d7SCorentin Labbe	help
104ac2614d7SCorentin Labbe	  Select this option if you want to provide kernel-side support for
105ac2614d7SCorentin Labbe	  the Pseudo-Random Number Generator found in the Security System.
106d9b45418SCorentin Labbe
107d9b45418SCorentin Labbeconfig CRYPTO_DEV_SUN8I_SS_HASH
108d9b45418SCorentin Labbe	bool "Enable support for hash on sun8i-ss"
109d9b45418SCorentin Labbe	depends on CRYPTO_DEV_SUN8I_SS
110d9b45418SCorentin Labbe	select MD5
111d9b45418SCorentin Labbe	select SHA1
112d9b45418SCorentin Labbe	select SHA256
113d9b45418SCorentin Labbe	help
114d9b45418SCorentin Labbe	  Say y to enable support for hash algorithms.
115