summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Faure <[email protected]>2022-04-06 14:30:21 +0800
committerStefano Babic <[email protected]>2022-04-12 17:33:57 +0200
commitc72f1f2f0cd41acc211e12f573974746c85e57bb (patch)
tree4a7a6f482b3d84e08c51fbfc0a61d93a485e7827
parent203412f66dd24ef96927068aef37123f97e482cf (diff)
imx: imx8ulp: release CAAM for the Cortex-A35
Release the CAAM for the A35 from the SPL. Signed-off-by: Clement Faure <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--board/freescale/imx8ulp_evk/spl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/freescale/imx8ulp_evk/spl.c b/board/freescale/imx8ulp_evk/spl.c
index 9bc90816176..66bfc2bd0ca 100644
--- a/board/freescale/imx8ulp_evk/spl.c
+++ b/board/freescale/imx8ulp_evk/spl.c
@@ -19,6 +19,7 @@
#include <asm/arch/ddr.h>
#include <asm/arch/rdc.h>
#include <asm/arch/upower.h>
+#include <asm/arch/s400_api.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -60,6 +61,8 @@ int power_init_board(void)
void spl_board_init(void)
{
struct udevice *dev;
+ u32 res;
+ int ret;
uclass_find_first_device(UCLASS_MISC, &dev);
@@ -98,6 +101,11 @@ void spl_board_init(void)
/* Call it after PS16 power up */
set_lpav_qos();
+
+ /* Enable A35 access to the CAAM */
+ ret = ahab_release_caam(0x7, &res);
+ if (ret)
+ printf("ahab release caam failed %d, 0x%x\n", ret, res);
}
void board_init_f(ulong dummy)