]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
omap-common: SYS_BOOT fallback logic correction and support for more devices
authorPaul Kocialkowski <contact@paulk.fr>
Thu, 27 Aug 2015 08:46:09 +0000 (10:46 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:50 +0000 (11:29 +0200)
commita019322738d977bc37147eb60bf47431de6c935d
tree0abf8d1f9742703f77e25038ff795bc9995df880
parent5d6da36b9c623c448c998e58a7ad03abed5dc2b0
omap-common: SYS_BOOT fallback logic correction and support for more devices

The SYS_BOOT-based fallback shouldn't only check for one of the conditions of
use and then let the switch/case handle each boot device without enforcing the
conditions for each type of boot device again.

For instance, this behaviour would trigger the fallback for UART when
BOOT_DEVICE_UART is defined, CONFIG_SPL_YMODEM_SUPPORT is enabled (which should
be a show-stopper) and e.g. BOOT_DEVICE_USB is enabled and not
CONFIG_SPL_USB_SUPPORT.
Separating the logic for USB and UART solves this.

In addition, this adds support for more peripheral devices (USBETH and CPGMAC)
to the fallback mechanism. Note that the USBETH boot device should always be
different from the USB boot device (each should match a different bootrom
handoff case).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at>
arch/arm/cpu/armv7/omap-common/boot-common.c