]> git.dujemihanovic.xyz Git - u-boot.git/commit
crypto: fsl: refactor for 32 bit version CAAM support on ARM64
authorYe Li <ye.li@nxp.com>
Thu, 25 Mar 2021 09:30:36 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 18:29:53 +0000 (20:29 +0200)
commit2ff17d2f74c544111478437971a7dd15d3468c02
treee3a75c0355e54cfd1f576c1bc8ad7abdaab6cc3e
parent58fc03e2a65884c17841dd4eee58c97bbeb2297b
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>
drivers/crypto/fsl/Kconfig
drivers/crypto/fsl/desc.h
drivers/crypto/fsl/desc_constr.h
drivers/crypto/fsl/fsl_hash.c
drivers/crypto/fsl/jobdesc.c
drivers/crypto/fsl/jr.c
drivers/crypto/fsl/jr.h
drivers/crypto/fsl/type.h [new file with mode: 0644]