imx: Enable ACTLR.SMP in SPL for i.MX6/7
authorSven Schwermer <sven@svenschwermer.de>
Sun, 2 Jan 2022 19:36:56 +0000 (20:36 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:39 +0000 (13:38 +0100)
commit0be742d06d9a8d4ca8048422a55305a8c4ac571b
treedb2350c8b85e897fcbf0c442d25114fd917ddc99
parent0c5cc164a911e1e2ae9b4de7224a10cea0309491
imx: Enable ACTLR.SMP in SPL for i.MX6/7

Similar to what has been done before with c5437e5b for u-boot proper, we
enable the SMP bit for SPL as well. This is necessary when SDP booting
straight into Linux, i.e. falcon boot. When SDP boot mode is active, the
ROM code does not set this bit which makes the caches not work once
activated in Linux.

On an i.MX6ULL (528MHz), this reduces a minimal kernel's boot time into
an initramfs shell from ~6.1s down to ~1.2s.

Signed-off-by: Sven Schwermer <sven@svenschwermer.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/cache.c
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-imx/mx7ulp/soc.c