]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
omap-common: SYS_BOOT-based fallback boot device selection for peripheral boot
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 15 Jul 2015 14:02:23 +0000 (16:02 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:44 +0000 (13:50 +0200)
commit9f27b83266af04f18bf30a2bec89a53f0de360bd
treeffb4fc6afed9c92e1a93aa360cc1d06ce23e4297
parent4737b3212eede8ab9c6e75b4b1d3d09694ff938a
omap-common: SYS_BOOT-based fallback boot device selection for peripheral boot

OMAP devices might boot from peripheral devices, such as UART or USB.
When that happens, the U-Boot SPL tries to boot the next stage (complete U-Boot)
from that peripheral device, but in most cases, this is not a valid boot device.

This introduces a fallback option that reads the SYS_BOOT pins, that are used by
the bootrom to determine which device to boot from. It is intended for the
SYS_BOOT value to be interpreted in the memory-preferred scheme, so that the
U-Boot SPL can load the next stage from a valid location.

Practically, this options allows loading the U-Boot SPL through USB and have it
load the next stage according to the memory device selected by SYS_BOOT instead
of stalling.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
arch/arm/cpu/armv7/omap-common/boot-common.c
arch/arm/include/asm/omap_common.h