]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: j721e_init: Add support for backup boot modes
authorAndreas Dannenberg <dannenberg@ti.com>
Sat, 16 May 2020 15:35:01 +0000 (21:05 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 19 May 2020 09:10:54 +0000 (14:40 +0530)
commit7bf82cc1f8ac4c85f6eb1b7e37e302792fa954aa
treeac934fd286cea4e621348de2c0490ffd1ca4fd66
parent62ca4aa16fcfaaa15e40ed26fe6826878d55ac59
arm: mach-k3: j721e_init: Add support for backup boot modes

When the boot of J721E devices using the primary bootmode (configured
via device pins) fails a boot using the configured backup bootmode is
attempted. To take advantage of the backup boot mode feature go ahead
and add support to the J721E init code to determine whether the ROM code
performed the boot using the primary or backup boot mode, and if booted
from the backup boot mode, decode the bootmode settings into the
appropriate U-Boot mode accordingly so that the boot can proceed.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
arch/arm/mach-k3/include/mach/j721e_hardware.h
arch/arm/mach-k3/include/mach/j721e_spl.h
arch/arm/mach-k3/j721e_init.c