imx_common: check for Serial Downloader in spl_boot_device
authorStefano Babic <sbabic@denx.de>
Fri, 11 Dec 2015 16:30:42 +0000 (17:30 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Jan 2016 14:57:56 +0000 (15:57 +0100)
commit40f4839ce12adfc0223d6e3035cf9c3a4754a0ec
tree366a30cf0c51909c3dfaa938eca4ffcad2118237
parentfe21eaf92de4d78413e69c95ba23a869e17454f7
imx_common: check for Serial Downloader in spl_boot_device

Check for bmode before reading the boot device
to check if a serial downloader is started,
and returns UART if the serial downloader is set,
letting SPL to wait for an image if
CONFIG_SPL_YMODEM_SUPPORT is set.

This allows to load again a SPL based board
with imx_usb_loader together with a tool
such as kermit.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tim Harvey <tharvey@gateworks.com>
CC: Fabio Estevam <Fabio.Estevam@freescale.com>
CC: Eric Nelson <eric.nelson@boundarydevices.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
Tested-by: Eric Nelson <eric@nelint.com>
arch/arm/imx-common/spl.c
doc/README.imx6