summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2021-02-05 15:45:12 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 14:01:19 +0530
commit19dba8bf9f4c87278b8e6e2133ebc39f4edb6592 (patch)
tree5be00e25abea0ca220229f86f741a22450706589 /arch
parenta1f57c393380d0245f8740ddf1497902b9f963f8 (diff)
downloadu-boot-19dba8bf9f4c87278b8e6e2133ebc39f4edb6592.tar.gz
u-boot-19dba8bf9f4c87278b8e6e2133ebc39f4edb6592.tar.xz
u-boot-19dba8bf9f4c87278b8e6e2133ebc39f4edb6592.zip
armv7: ls102xa: Enable I-Cache to speed up the boot time
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> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/ls102xa/cpu.c2
1 files changed, 2 insertions, 0 deletions
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.