diff mbox series

armv7: ls102xa: Enable I-Cache to speed up the boot time

Message ID 20210205074512.9225-1-Zhiqiang.Hou@nxp.com
State Accepted
Commit 19dba8bf9f4c87278b8e6e2133ebc39f4edb6592
Delegated to: Priyanka Jain
Headers show
Series armv7: ls102xa: Enable I-Cache to speed up the boot time | expand

Commit Message

Z.Q. Hou Feb. 5, 2021, 7:45 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Enable the I-Cache to speed up the boot time, especailly for the NOR
boot, currently it takes about 15 seconds from power up to the U-Boot
prompt, and with the I-Cache enabled it only takes around 2.5 seconds.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
---
 arch/arm/cpu/armv7/ls102xa/cpu.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv7/ls102xa/cpu.c b/arch/arm/cpu/armv7/ls102xa/cpu.c
index ce472aa9bd..c6a39aa341 100644
--- a/arch/arm/cpu/armv7/ls102xa/cpu.c
+++ b/arch/arm/cpu/armv7/ls102xa/cpu.c
@@ -316,6 +316,8 @@  int arch_cpu_init(void)
 	struct ccsr_scfg *scfg = (void *)CONFIG_SYS_FSL_SCFG_ADDR;
 	u32 state;
 
+	icache_enable();
+
 	/*
 	 * The RCPM FSM state may not be reset after power-on.
 	 * So, reset them.