]> git.dujemihanovic.xyz Git - u-boot.git/commit
armv8: fsl-layerscape: Update parsing boot source
authorYork Sun <york.sun@nxp.com>
Mon, 5 Nov 2018 18:02:09 +0000 (18:02 +0000)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Dec 2018 22:37:19 +0000 (14:37 -0800)
commit56db948b85aa7c03c79b2c796500de4523924a9d
tree66a4244e1f6382be7584687574284be3b92cb71b
parent5a73ec6169d1db85eacc4ad2fc74dad92a846c9e
armv8: fsl-layerscape: Update parsing boot source

Workaround of erratum A010539 clears the RCW source field in PORSR1
register, causing failure of detecting boot source using this method.
Use SMC call if U-Boot runs at EL2. If SMC is not implemented or
running at EL3, continue to read PORSR1 and presume QSPI as boot
source if erratum workaround A010539 is enabled and RCW source is
cleared.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/include/asm/arch-fsl-layerscape/soc.h