]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit754c929f3eb71a506ca507474135e1ab92b44b2d
tree221602edf0fe35c9bc35acc894a0e0adf80e2d12
parent9752180eb29d8f571d2b912a4f95cd0cb21c8f05
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