summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/fsl/Kconfig
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2021-03-25 17:30:36 +0800
committerStefano Babic <sbabic@denx.de>2021-04-08 20:29:53 +0200
commit2ff17d2f74c544111478437971a7dd15d3468c02 (patch)
treee3a75c0355e54cfd1f576c1bc8ad7abdaab6cc3e /drivers/crypto/fsl/Kconfig
parent58fc03e2a65884c17841dd4eee58c97bbeb2297b (diff)
downloadu-boot-2ff17d2f74c544111478437971a7dd15d3468c02.tar.gz
u-boot-2ff17d2f74c544111478437971a7dd15d3468c02.tar.xz
u-boot-2ff17d2f74c544111478437971a7dd15d3468c02.zip
crypto: fsl: refactor for 32 bit version CAAM support on ARM64
Previous patch "MLK-18044-4: crypto: caam: Fix pointer size to 32bit for i.MX8M" breaks the 64 bits CAAM. Since i.MX CAAM are all 32 bits no matter the ARM arch (32 or 64), to adapt and not break 64 bits CAAM support, add a new config CONFIG_CAAM_64BIT and new relevant type "caam_dma_addr_t". This config is default enabled when CONFIG_PHYS_64BIT is set except for iMX8M. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/crypto/fsl/Kconfig')
-rw-r--r--drivers/crypto/fsl/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/fsl/Kconfig b/drivers/crypto/fsl/Kconfig
index 5ed6140da3..1f5dfb94bb 100644
--- a/drivers/crypto/fsl/Kconfig
+++ b/drivers/crypto/fsl/Kconfig
@@ -7,6 +7,12 @@ config FSL_CAAM
Module (CAAM), also known as the SEC version 4 (SEC4). The driver uses
Job Ring as interface to communicate with CAAM.
+config CAAM_64BIT
+ bool
+ default y if PHYS_64BIT && !ARCH_IMX8M
+ help
+ Select Crypto driver for 64 bits CAAM version
+
config SYS_FSL_HAS_SEC
bool
help