From: Andrejs Cainikovs Date: Tue, 4 Oct 2022 11:06:31 +0000 (+0200) Subject: verdin-imx8mp: spl: initialize caam X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=727694b2ea28ce56f191daf40da7b4dd8f882366;p=u-boot.git verdin-imx8mp: spl: initialize caam This change initializes Cryptographic Accelerator and Assurance Module. Signed-off-by: Andrejs Cainikovs --- diff --git a/board/toradex/verdin-imx8mp/spl.c b/board/toradex/verdin-imx8mp/spl.c index 6f1931ffac..1838b464a0 100644 --- a/board/toradex/verdin-imx8mp/spl.c +++ b/board/toradex/verdin-imx8mp/spl.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include #include @@ -43,6 +45,15 @@ void spl_dram_init(void) void spl_board_init(void) { + if (IS_ENABLED(CONFIG_FSL_CAAM)) { + struct udevice *dev; + int ret; + + ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(caam_jr), &dev); + if (ret) + printf("Failed to initialize caam_jr: %d\n", ret); + } + /* * Set GIC clock to 500Mhz for OD VDD_SOC. Kernel driver does * not allow to change it. Should set the clock after PMIC