diff options
author | Gaurav Jain <gaurav.jain@nxp.com> | 2022-06-23 14:01:35 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2022-08-16 12:07:30 +0300 |
commit | 47465877a5b9d6dbc3a068faf24551e2cb3a4911 (patch) | |
tree | 6ea5e4c531ab043503980e6a6873d16e3878720b /board/freescale/ls1021atwr/ls1021atwr.c | |
parent | 20d4c6052fe5826b3421e86b2f0e76a6c22581a7 (diff) | |
download | u-boot-47465877a5b9d6dbc3a068faf24551e2cb3a4911.tar.xz |
ls1021atwr: caam: Enable Uboot validaion in SPL.
caam driver model enabled in spl for secure boot.
fsl_rsa_mod_exp driver enabled in spl for validating uboot image.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Diffstat (limited to 'board/freescale/ls1021atwr/ls1021atwr.c')
-rw-r--r-- | board/freescale/ls1021atwr/ls1021atwr.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c index a3aa84deb2..746b35a678 100644 --- a/board/freescale/ls1021atwr/ls1021atwr.c +++ b/board/freescale/ls1021atwr/ls1021atwr.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Freescale Semiconductor, Inc. - * Copyright 2019, 2021 NXP + * Copyright 2019, 2021-2022 NXP */ #include <common.h> @@ -34,7 +34,7 @@ #include <fsl_qe.h> #endif #include <fsl_validate.h> - +#include <dm/uclass.h> DECLARE_GLOBAL_DATA_PTR; @@ -530,6 +530,15 @@ int board_init(void) #if defined(CONFIG_SPL_BUILD) 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); + } + ls102xa_smmu_stream_id_init(); } #endif |