mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
3f368b886e
The AmLogic GXL crypto accelerator driver is built into the kernel if ARCH_MESON is set. However, given the single image policy of arm64, its defconfig enables all platforms by default, and so ARCH_MESON is usually enabled. This means that the AmLogic driver causes the arm64 defconfig build to pull in a huge chunk of the crypto stack as a builtin as well, which is undesirable, so let's make the amlogic GXL driver default to 'm' instead. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
26 lines
797 B
Plaintext
26 lines
797 B
Plaintext
config CRYPTO_DEV_AMLOGIC_GXL
|
|
tristate "Support for amlogic cryptographic offloader"
|
|
depends on HAS_IOMEM
|
|
default m if ARCH_MESON
|
|
select CRYPTO_SKCIPHER
|
|
select CRYPTO_ENGINE
|
|
select CRYPTO_ECB
|
|
select CRYPTO_CBC
|
|
select CRYPTO_AES
|
|
help
|
|
Select y here to have support for the cryptographic offloader
|
|
available on Amlogic GXL SoC.
|
|
This hardware handles AES ciphers in ECB/CBC mode.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called amlogic-gxl-crypto.
|
|
|
|
config CRYPTO_DEV_AMLOGIC_GXL_DEBUG
|
|
bool "Enable amlogic stats"
|
|
depends on CRYPTO_DEV_AMLOGIC_GXL
|
|
depends on DEBUG_FS
|
|
help
|
|
Say y to enable amlogic-crypto debug stats.
|
|
This will create /sys/kernel/debug/gxl-crypto/stats for displaying
|
|
the number of requests per flow and per algorithm.
|