diff options
author | Ji Luo <ji.luo@nxp.com> | 2019-01-18 18:30:29 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2019-01-18 18:30:29 +0800 |
commit | a5ab0289c7dc27c307207d8f9caa39f646a2f49f (patch) | |
tree | 5dee2a0417ea744665441c60f05e9c2b5704a333 /arch | |
parent | a6792ed6e578f4a5585dfc4370e3dbf348a4c8fd (diff) |
MA-13964 imx8q: Kick the CAAM JR before kicking the SMMU
Kick the CAAM JR3 before kicking the SMMU, so SMMU error
won't affect CAAM functions.
Test: build and boot on imx8qxp_mek.
Change-Id: Iaa9a6084f226f81a087aac1eced93e8785861113
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/imx8/cpu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index c511e909fdc..63de88fd693 100644 --- a/arch/arm/mach-imx/imx8/cpu.c +++ b/arch/arm/mach-imx/imx8/cpu.c @@ -185,6 +185,14 @@ int arch_cpu_init(void) gd->arch.ipc_channel_handle = ipcHndl; +/* Dual bootloader feature will require CAAM access, but JR0 and JR1 will be + * assigned to seco for imx8, use JR3 instead. + */ +#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_DUAL_BOOTLOADER) + sc_pm_set_resource_power_mode(ipcHndl, SC_R_CAAM_JR3, SC_PM_PW_MODE_ON); + sc_pm_set_resource_power_mode(ipcHndl, SC_R_CAAM_JR3_OUT, SC_PM_PW_MODE_ON); +#endif + if (IS_ENABLED(CONFIG_XEN)) return 0; @@ -203,14 +211,6 @@ int arch_cpu_init(void) return 0; #endif -/* Dual bootloader feature will require CAAM access, but JR0 and JR1 will be - * assigned to seco for imx8, use JR3 instead. - */ -#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_DUAL_BOOTLOADER) - sc_pm_set_resource_power_mode(ipcHndl, SC_R_CAAM_JR3, SC_PM_PW_MODE_ON); - sc_pm_set_resource_power_mode(ipcHndl, SC_R_CAAM_JR3_OUT, SC_PM_PW_MODE_ON); -#endif - return 0; } |