mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
bbf2cb1ea1
If STM32 CRC device is already in use, calculate CRC by software.
This will release CPU constraint for a concurrent access to the
hardware, and avoid masking irqs during the whole block processing.
Fixes: 7795c0baf5
("crypto: stm32/crc32 - protect from concurrent accesses")
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
33 lines
917 B
Plaintext
33 lines
917 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config CRYPTO_DEV_STM32_CRC
|
|
tristate "Support for STM32 crc accelerators"
|
|
depends on ARCH_STM32
|
|
select CRYPTO_HASH
|
|
select CRC32
|
|
help
|
|
This enables support for the CRC32 hw accelerator which can be found
|
|
on STMicroelectronics STM32 SOC.
|
|
|
|
config CRYPTO_DEV_STM32_HASH
|
|
tristate "Support for STM32 hash accelerators"
|
|
depends on ARCH_STM32
|
|
depends on HAS_DMA
|
|
select CRYPTO_HASH
|
|
select CRYPTO_MD5
|
|
select CRYPTO_SHA1
|
|
select CRYPTO_SHA256
|
|
select CRYPTO_ENGINE
|
|
help
|
|
This enables support for the HASH hw accelerator which can be found
|
|
on STMicroelectronics STM32 SOC.
|
|
|
|
config CRYPTO_DEV_STM32_CRYP
|
|
tristate "Support for STM32 cryp accelerators"
|
|
depends on ARCH_STM32
|
|
select CRYPTO_HASH
|
|
select CRYPTO_ENGINE
|
|
select CRYPTO_LIB_DES
|
|
help
|
|
This enables support for the CRYP (AES/DES/TDES) hw accelerator which
|
|
can be found on STMicroelectronics STM32 SOC.
|