armv7R: K3: j721e: Add support for boot device detection
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 13 Jun 2019 04:59:43 +0000 (10:29 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jul 2019 01:49:26 +0000 (21:49 -0400)
commit0a704924f3725cbf1dffe88f94252a22ccc7af12
tree0a43c5295f91baec4dc21d13f29e3a518c1c3fad
parentc2562d7c9e50e2e8afbda4aa0f13698a1a16de06
armv7R: K3: j721e: Add support for boot device detection

J721E allows for booting from primary or backup boot media.
Both media can be chosen individually based on switch settings.
ROM looks for a valid image in primary boot media, if not found
then looks in backup boot media. In order to pass this boot media
information to boot loader, ROM stores a value at a particular
address. Add support for reading this information and determining
the boot media correctly.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
arch/arm/mach-k3/include/mach/hardware.h
arch/arm/mach-k3/include/mach/j721e_hardware.h [new file with mode: 0644]
arch/arm/mach-k3/include/mach/j721e_spl.h [new file with mode: 0644]
arch/arm/mach-k3/include/mach/spl.h
arch/arm/mach-k3/j721e_init.c