diff options
author | Fabio Estevam <festevam@denx.de> | 2022-06-09 17:13:31 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-06-28 15:24:31 +0200 |
commit | b5023254b88a67fcbca913e212e3401dea521fc9 (patch) | |
tree | c6cf81c6dd0371ad54fa32deb2685a4f2356ae30 /board/kontron | |
parent | 66af2c3e95bec055c29f139ad200e4bb4f9756f7 (diff) |
kontron-sl-mx8mm: Add CAAM support
Add CAAM support, which is required when enabling HAB secure boot.
Select CONFIG_SPL_DRIVERS_MISC so that CONFIG_IMX_HAB could
build successfully, if selected.
Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Diffstat (limited to 'board/kontron')
-rw-r--r-- | board/kontron/sl-mx8mm/spl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/kontron/sl-mx8mm/spl.c b/board/kontron/sl-mx8mm/spl.c index 4ef03c8c17..5a513722c5 100644 --- a/board/kontron/sl-mx8mm/spl.c +++ b/board/kontron/sl-mx8mm/spl.c @@ -13,6 +13,9 @@ #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/iomux-v3.h> #include <dm/uclass.h> +#include <dm/device.h> +#include <dm/uclass-internal.h> +#include <dm/device-internal.h> #include <hang.h> #include <i2c.h> #include <init.h> @@ -213,6 +216,12 @@ void spl_board_init(void) struct udevice *dev; int ret; + if (IS_ENABLED(CONFIG_FSL_CAAM)) { + ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(caam_jr), &dev); + if (ret) + printf("Failed to initialize %s: %d\n", dev->name, ret); + } + puts("Normal Boot\n"); ret = uclass_get_device_by_name(UCLASS_CLK, |