imx: imx6ul: kontron-sl-mx6ul: Select correct boot and env device
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 23 Aug 2022 14:29:13 +0000 (16:29 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 20 Oct 2022 15:35:51 +0000 (17:35 +0200)
commit93935acc6f1d5b928f8552e767638e94a82793da
tree221602edf0fe35c9bc35acc894a0e0adf80e2d12
parent234b3be98efe21d04f623b0a67eead321a3da6c1
imx: imx6ul: kontron-sl-mx6ul: Select correct boot and env device

Instead of checking both, SPI NOR and MMC for loading U-Boot proper
and the environment, implement a way to detect the actual boot
device even if the BootROM doesn't report it and we can't rely
solely on the fuse settings, as by default we use MMC as primary
boot device and boot from SPI NOR via the secondary fallback device
(EEPROM Recovery Mode).

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
board/kontron/sl-mx6ul/Makefile
board/kontron/sl-mx6ul/sl-mx6ul-common.c [new file with mode: 0644]
board/kontron/sl-mx6ul/sl-mx6ul-common.h [new file with mode: 0644]
board/kontron/sl-mx6ul/sl-mx6ul.c
board/kontron/sl-mx6ul/spl.c