]> git.baikalelectronics.ru Git - uboot.git/commit
imx7: spl: Check for Serial Downloader in spl_boot_device
authorEran Matityahu <eran.m@variscite.com>
Tue, 6 Mar 2018 14:38:00 +0000 (16:38 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 29 Mar 2018 15:33:12 +0000 (17:33 +0200)
commit95d33e4f235ff4a7a450bac7457ed3b777e6aa88
treede4bff992d15ee77b25d08e8e2cd25a8f8e65504
parentccc0647cb579b0bee7275f1e8789c8d5858568ed
imx7: spl: Check for Serial Downloader in spl_boot_device

Similarly to imx6, before reading the boot device, first check
bmode to see if the serial downloader has been selected
explicitly, then check whether the serial downloader has been
activated due to unbootable primary boot devices (e.g. empty eMMC).

If the serial downloader is activated, return BOOT_DEVICE_BOARD.
This allows SPL with SDP support to wait for the U-Boot image
to be loaded via the serial download protocol using imx_usb_loader.

Signed-off-by: Eran Matityahu <eran.m@variscite.com>
arch/arm/mach-imx/spl.c