]> git.baikalelectronics.ru Git - uboot.git/commit
armv8: layerscape: don't initialize GIC in SPL
authorMichael Walle <michael@walle.cc>
Wed, 18 Nov 2020 16:45:59 +0000 (17:45 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 4 Dec 2020 21:09:06 +0000 (16:09 -0500)
commit94c6ededd677e2c96268d5956f20f33610ddf7eb
tree7dcfafae0ab9380e3fb3bdf343e9bb9524ba1c80
parentf7fac38bda034f4b23bf950618bbae73cf542149
armv8: layerscape: don't initialize GIC in SPL

The BL31 expects the GIC to be uninitialized. Thus, if we are loading
the BL31 by the SPL we must not initialize it. If u-boot is loaded by
the SPL directly, it will initialize the GIC again (in the same
lowlevel_init()).

This was tested on a custom board with SPL loading the BL31 and jumping
to u-boot as BL33 as well as loading u-boot directly by the SPL. In case
the ATF BL1/BL2 is used, this patch won't change anything, because no
SPL is used at all.

Signed-off-by: Michael Walle <michael@walle.cc>
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S