arm: mach-k3: am642: Add support for boot device detection
authorKeerthy <j-keerthy@ti.com>
Fri, 23 Apr 2021 16:27:33 +0000 (11:27 -0500)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 12 May 2021 10:57:57 +0000 (16:27 +0530)
commit57dba04afbb7e06d3c1399bc38a2831c158ea478
treec79ed1a5039c406fbc6b8941aee5873a18fa15d8
parenteb54168bb09bb46474f8017f53aedda98752dace
arm: mach-k3: am642: Add support for boot device detection

AM642 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: Keerthy <j-keerthy@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
arch/arm/mach-k3/am642_init.c
arch/arm/mach-k3/include/mach/am64_hardware.h [new file with mode: 0644]
arch/arm/mach-k3/include/mach/am64_spl.h [new file with mode: 0644]
arch/arm/mach-k3/include/mach/hardware.h
arch/arm/mach-k3/include/mach/spl.h