ARM: imx6q_logic: Fix MMC2 booting
authorAdam Ford <aford173@gmail.com>
Tue, 8 Oct 2019 13:01:12 +0000 (08:01 -0500)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
commit9fb50c68daa696056c7842989e5f7fae1d326b34
tree42df2a1658e416dc8c2ed0c67725bd2fc5dd1115
parent63ce94b16b3527bc6944d1ab8b2572c6f39e0aef
ARM: imx6q_logic: Fix MMC2 booting

With the reverting of a previous change to spl_boot_device,
this board needs a new solution to determining if we're booting
from MMC1 or MMC2.

This patch creates board_boot_order function which overrides the
standard, and returns not only MMC1, or MMC2, but also can fall
back to NAND or the serial downloader should other boot options
fail.

Signed-off-by: Adam Ford <aford173@gmail.com>
board/logicpd/imx6/imx6logic.c