]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: tpc70: Add board_boot_order() to distinguish between eMMC and SD boot
authorLukasz Majewski <lukma@denx.de>
Thu, 10 Oct 2019 14:11:24 +0000 (16:11 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Oct 2019 20:49:11 +0000 (22:49 +0200)
commit58c76e63f17f87afdc45ec32a84c5e86fc2b6fdd
tree51025156e3b9144e59dcc165da6853a6de38ff1d
parent309ce98fcbc186789f11794af491f8e6c9627443
imx: tpc70: Add board_boot_order() to distinguish between eMMC and SD boot

The TPC70 can boot from SD card (debug/development) and eMMC (production).
The board_boot_order() function provides a run time check for the device
from which one wants to boot (it is selected by GPIO pins setup).

Moreover, a fallback to SD card is provided if the detection is not
possible or working properly.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c