1
0
Fork 0
remarkable-uboot/drivers/crypto
Ye Li b12e170792 MLK-20026 caam: Fix CAAM RNG init hang on imx8mq RevA
Found the imx8mq Rev A chip (B0 and B1 chips are ok) boot hang at CAAM RNG init.
The jobring 0 can't complete instantiation descriptor and spins on checking ORSFR_JR0.

In current implementation, the descriptor and jobring input and output base address locate
on TCM, because the driver uses raw_data array in jr_data_st structure as the buffer.
This seems cause the issue. If switched from TCM to OCRAM, the issue will go.

Since accessing TCM by CAAM is not very reliable. Add this patch to use OCRAM for SPL case.
The early malloc is ready on SPL before calling board_init_f. So we can use malloc to allocate
memory instead of the raw_data array.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-10-23 20:32:59 -07:00
..
fsl MLK-18044-4: crypto: caam: Fix pointer size to 32bit for i.MX8M 2018-05-23 04:15:46 -07:00
rsa_mod_exp verified-boot: Minimal support for booting U-Boot proper from SPL 2016-06-12 13:14:58 -04:00
Kconfig drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
Makefile MLK-18591-2 crypto: caam: Add fsl caam driver 2018-06-13 02:41:08 -07:00
ace_sha.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ace_sha.h drivers: crypto: ace_sha: add implementation of hardware based lib rand 2014-03-28 15:06:31 -04:00
fsl_caam.c MLK-20026 caam: Fix CAAM RNG init hang on imx8mq RevA 2018-10-23 20:32:59 -07:00
fsl_caam_internal.h MLK-19053: crypto: caam: RNG4 TRNG errata 2018-09-14 08:58:50 +02:00