xref: /openbmc/linux/drivers/crypto/allwinner/Kconfig (revision 06f751b6)
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
806f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE
906f751b6SCorentin Labbe	tristate "Support for Allwinner Crypto Engine cryptographic offloader"
1006f751b6SCorentin Labbe	select CRYPTO_BLKCIPHER
1106f751b6SCorentin Labbe	select CRYPTO_ENGINE
1206f751b6SCorentin Labbe	select CRYPTO_ECB
1306f751b6SCorentin Labbe	select CRYPTO_CBC
1406f751b6SCorentin Labbe	select CRYPTO_AES
1506f751b6SCorentin Labbe	select CRYPTO_DES
1606f751b6SCorentin Labbe	depends on CRYPTO_DEV_ALLWINNER
1706f751b6SCorentin Labbe	depends on PM
1806f751b6SCorentin Labbe	help
1906f751b6SCorentin Labbe	  Select y here to have support for the crypto Engine availlable on
2006f751b6SCorentin Labbe	  Allwinner SoC H2+, H3, H5, H6, R40 and A64.
2106f751b6SCorentin Labbe	  The Crypto Engine handle AES/3DES ciphers in ECB/CBC mode.
2206f751b6SCorentin Labbe
2306f751b6SCorentin Labbe	  To compile this driver as a module, choose M here: the module
2406f751b6SCorentin Labbe	  will be called sun8i-ce.
2506f751b6SCorentin Labbe
2606f751b6SCorentin Labbeconfig CRYPTO_DEV_SUN8I_CE_DEBUG
2706f751b6SCorentin Labbe	bool "Enable sun8i-ce stats"
2806f751b6SCorentin Labbe	depends on CRYPTO_DEV_SUN8I_CE
2906f751b6SCorentin Labbe	depends on DEBUG_FS
3006f751b6SCorentin Labbe	help
3106f751b6SCorentin Labbe	  Say y to enable sun8i-ce debug stats.
3206f751b6SCorentin Labbe	  This will create /sys/kernel/debug/sun8i-ce/stats for displaying
3306f751b6SCorentin Labbe	  the number of requests per flow and per algorithm.
34