diff options
author | Franck LENORMAND <franck.lenormand@nxp.com> | 2018-08-23 09:35:23 +0200 |
---|---|---|
committer | Franck LENORMAND <franck.lenormand@nxp.com> | 2018-08-27 09:14:04 +0200 |
commit | fe1cd0abc6c57cc59312ab751dd015cb149d7100 (patch) | |
tree | 87440945f4c61a857c36d40a5e96a71390e0cec9 /plat/imx/imx8mm/imx8mm_bl31_setup.c | |
parent | ce68b5606a7f307e1875020dd96521b483863072 (diff) |
MLK-18619: [MX8MM-EVK]CSU_RDC: enable csu_rdc test in ATF make the board crash
csu_rdc test in ATF makes use of GPIO 4 and 5. Unfortunatly GPIO5 is
being used by u-boot. This is why u-boot crashes.
Changing the peripherals to protect, instead of gpio4 and 5, use csu
and rdc registers instead.
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Diffstat (limited to 'plat/imx/imx8mm/imx8mm_bl31_setup.c')
-rw-r--r-- | plat/imx/imx8mm/imx8mm_bl31_setup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plat/imx/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8mm/imx8mm_bl31_setup.c index cc30c7a4..587b74dd 100644 --- a/plat/imx/imx8mm/imx8mm_bl31_setup.c +++ b/plat/imx/imx8mm/imx8mm_bl31_setup.c @@ -197,13 +197,12 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, static console_uart_t console; #endif -#if !defined (CSU_RDC_TEST) int i; /* enable CSU NS access permission */ for (i = 0; i < 64; i++) { - mmio_write_32(0x303e0000 + i * 4, 0xffffffff); + mmio_write_32(0x303e0000 + i * 4, 0x00ff00ff); } -#endif + /* config the aips access permission */ imx8mm_aips_config(); |