ARM: imx6q_logic: Cleanup boot sequence check
authorAdam Ford <aford173@gmail.com>
Sun, 3 Nov 2019 13:58:40 +0000 (07:58 -0600)
committerStefano Babic <sbabic@denx.de>
Fri, 27 Dec 2019 13:30:52 +0000 (14:30 +0100)
commit576434b2056b3fb01438da2ee210048ea80233bf
treeb996be371b9bbb26cdf4714c6e341b4e21789307
parent61d7e2bcc717da7d9b4774411f0903a3747797b0
ARM: imx6q_logic: Cleanup boot sequence check

The board_boot_order() function currenly assumes that the boot source
is MMC/eMMC, but this isn't true for the NAND devices.

This patch cleans up board_boot_order() to check for NAND, SD, ESD,
MMC or EMMC.  Anything beyond these are not supported, so it will
default back to the serial downloader if any of those devices are not
available.

Fixes: 9fb50c68daa6 ("ARM: imx6q_logic: Fix MMC2 booting")
Signed-off-by: Adam Ford <aford173@gmail.com>
board/logicpd/imx6/imx6logic.c