summaryrefslogtreecommitdiff
path: root/board/toradex
diff options
context:
space:
mode:
authorAndrejs Cainikovs <andrejs.cainikovs@toradex.com>2022-10-04 13:06:31 +0200
committerStefano Babic <sbabic@denx.de>2022-10-24 11:34:33 +0200
commit727694b2ea28ce56f191daf40da7b4dd8f882366 (patch)
tree5d5f6d5279cee9677a8d7db328eeaa9eb2a55e2a /board/toradex
parent9836eb0a2fd6d56a272784729f930e40e736c254 (diff)
downloadu-boot-727694b2ea28ce56f191daf40da7b4dd8f882366.tar.gz
u-boot-727694b2ea28ce56f191daf40da7b4dd8f882366.tar.bz2
u-boot-727694b2ea28ce56f191daf40da7b4dd8f882366.zip
verdin-imx8mp: spl: initialize caam
This change initializes Cryptographic Accelerator and Assurance Module. Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Diffstat (limited to 'board/toradex')
-rw-r--r--board/toradex/verdin-imx8mp/spl.c11
1 files changed, 11 insertions, 0 deletions
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 <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/arch/ddr.h>
+#include <dm/device.h>
+#include <dm/uclass.h>
#include <power/pmic.h>
#include <power/pca9450.h>
@@ -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