Corentin Labbe | 3914b93 | 2019-10-23 22:05:03 +0200 | [diff] [blame] | 1 | config 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 |
Corentin Labbe | 06f751b | 2019-10-23 22:05:04 +0200 | [diff] [blame] | 7 | |
Corentin Labbe | 1751354 | 2019-10-23 22:05:13 +0200 | [diff] [blame] | 8 | config CRYPTO_DEV_SUN4I_SS |
| 9 | tristate "Support for Allwinner Security System cryptographic accelerator" |
Corentin Labbe | 7ca2a71 | 2019-11-14 11:49:07 +0100 | [diff] [blame] | 10 | depends on ARCH_SUNXI |
Corentin Labbe | 1751354 | 2019-10-23 22:05:13 +0200 | [diff] [blame] | 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 |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 17 | select CRYPTO_SKCIPHER |
Corentin Labbe | 1751354 | 2019-10-23 22:05:13 +0200 | [diff] [blame] | 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 | |
Corentin Labbe | 06f751b | 2019-10-23 22:05:04 +0200 | [diff] [blame] | 35 | config CRYPTO_DEV_SUN8I_CE |
| 36 | tristate "Support for Allwinner Crypto Engine cryptographic offloader" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 37 | select CRYPTO_SKCIPHER |
Corentin Labbe | 06f751b | 2019-10-23 22:05:04 +0200 | [diff] [blame] | 38 | select CRYPTO_ENGINE |
| 39 | select CRYPTO_ECB |
| 40 | select CRYPTO_CBC |
| 41 | select CRYPTO_AES |
| 42 | select CRYPTO_DES |
| 43 | depends on CRYPTO_DEV_ALLWINNER |
| 44 | depends on PM |
| 45 | help |
| 46 | Select y here to have support for the crypto Engine availlable on |
| 47 | Allwinner SoC H2+, H3, H5, H6, R40 and A64. |
| 48 | The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode. |
| 49 | |
| 50 | To compile this driver as a module, choose M here: the module |
| 51 | will be called sun8i-ce. |
| 52 | |
| 53 | config CRYPTO_DEV_SUN8I_CE_DEBUG |
| 54 | bool "Enable sun8i-ce stats" |
| 55 | depends on CRYPTO_DEV_SUN8I_CE |
| 56 | depends on DEBUG_FS |
| 57 | help |
| 58 | Say y to enable sun8i-ce debug stats. |
| 59 | This will create /sys/kernel/debug/sun8i-ce/stats for displaying |
| 60 | the number of requests per flow and per algorithm. |
Corentin Labbe | f08fcce | 2019-10-25 20:51:25 +0200 | [diff] [blame] | 61 | |
| 62 | config CRYPTO_DEV_SUN8I_SS |
| 63 | tristate "Support for Allwinner Security System cryptographic offloader" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 64 | select CRYPTO_SKCIPHER |
Corentin Labbe | f08fcce | 2019-10-25 20:51:25 +0200 | [diff] [blame] | 65 | select CRYPTO_ENGINE |
| 66 | select CRYPTO_ECB |
| 67 | select CRYPTO_CBC |
| 68 | select CRYPTO_AES |
| 69 | select CRYPTO_DES |
| 70 | depends on CRYPTO_DEV_ALLWINNER |
| 71 | depends on PM |
| 72 | help |
| 73 | Select y here to have support for the Security System available on |
| 74 | Allwinner SoC A80, A83T. |
| 75 | The Security System handle AES/3DES ciphers in ECB/CBC mode. |
| 76 | |
| 77 | To compile this driver as a module, choose M here: the module |
| 78 | will be called sun8i-ss. |
| 79 | |
| 80 | config CRYPTO_DEV_SUN8I_SS_DEBUG |
| 81 | bool "Enable sun8i-ss stats" |
| 82 | depends on CRYPTO_DEV_SUN8I_SS |
| 83 | depends on DEBUG_FS |
| 84 | help |
| 85 | Say y to enable sun8i-ss debug stats. |
| 86 | This will create /sys/kernel/debug/sun8i-ss/stats for displaying |
| 87 | the number of requests per flow and per algorithm. |