armv8: layerscape: spl: mark OCRAM as non-secure
authorMichael Walle <michael@walle.cc>
Tue, 23 Aug 2022 09:30:14 +0000 (11:30 +0200)
committerPeng Fan <peng.fan@nxp.com>
Tue, 6 Sep 2022 01:10:41 +0000 (09:10 +0800)
commit6622c30f2e033eb4268720c1927a52062406f870
tree8dffd95d8e771c0177f3ac6ec04c2b8676cbab1a
parent427aa3c9b72b6672f714389a6f71b6cc2841d559
armv8: layerscape: spl: mark OCRAM as non-secure

By default the OCRAM is marked as secure. While the SPL runs in EL3 and
thus can access it, DMA devices cannot. Mark the whole OCRAM as
non-secure.
This will fix MMC and SD card boot on LS1028A when using SPL instead of
TF-A.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c