]> git.baikalelectronics.ru Git - uboot.git/commit
arm: imx8ulp: Enable full L2 cache in SPL
authorYe Li <ye.li@nxp.com>
Sat, 7 Aug 2021 08:00:48 +0000 (16:00 +0800)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 12:46:51 +0000 (14:46 +0200)
commit994bfc82db2ba6878ae31d6e14017ef13aa84c09
tree728844aae35918a91503e3395fad1e168bcc6533
parent407991dcfcbe800932779f4c177d2073ac186f56
arm: imx8ulp: Enable full L2 cache in SPL

SRAM2 is half L2 cache and default to SRAM after system boot.
To enable the full l2 cache (512KB), it needs to reset A35 to make
the change happen.

So re-implement the jump entry function in SPL:
1. configure the core0 reset vector to entry (ATF)
2. enable the L2 full cache
3. reset A35
So when core0 up, it runs into ATF. And we have 512KB L2 cache working.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8ulp/soc.c