
3 Apr
2022
3 Apr
'22
11:24 p.m.
Enable instruction cache early on to speed up the boot process on i.MX8M.
Signed-off-by: Marek Vasut marex@denx.de Cc: Fabio Estevam festevam@gmail.com Cc: Peng Fan peng.fan@nxp.com Cc: Stefano Babic sbabic@denx.de --- arch/arm/mach-imx/imx8m/soc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index a41afc5b4f8..6fd4377f1c2 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -514,6 +514,9 @@ int arch_cpu_init_dm(void) int arch_cpu_init(void) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; + + icache_enable(); + /* * ROM might disable clock for SCTR, * enable the clock before timer_init.
--
2.35.1