]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7c8e0b254ff5403a7dfd7dec2ea55d037ae5f0fb
tree3eac94c6a3a190224c7ac35e0560d4fb08460f3c
parent1caed38eb48f8d7efc9511cb8e211ca9cf78eedb
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