arm: K3: am654: Add support for getting boot mode
authorAndrew F. Davis <afd@ti.com>
Wed, 3 Oct 2018 15:03:23 +0000 (10:03 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 10 Oct 2018 17:35:08 +0000 (13:35 -0400)
commit81089a54300df5fa5b4a22e3bf4df6b521438f68
tree3eac94c6a3a190224c7ac35e0560d4fb08460f3c
parentb5700efbc863669bc4e11283917aa9965c5fc8e8
arm: K3: am654: Add support for getting boot mode

Read the boot mode register to find the boot mode. Only use eMMC boot0
mode when the mode is eMMC boot (called BOOT_DEVICE_MMC1 currently due
to current conflating of boot mode and boot device), and not iff the
boot device is MMC port 0.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-k3/am6_init.c