]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv7: ls102xa: Enable I-Cache to speed up the boot time
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 5 Feb 2021 07:45:12 +0000 (15:45 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:19 +0000 (14:01 +0530)
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>
arch/arm/cpu/armv7/ls102xa/cpu.c

index ce472aa9bd542438a56b2112d1f1f20cf3fe75d0..c6a39aa3412dd77e3fa3dc28ca8648c22b88724a 100644 (file)
@@ -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.