Commit 1f677e4266b1265fca9c8cc93f755900b3ce7503

Authored by xypron.glpk@gmx.de
Committed by Tom Rini
1 parent 2681e78a5e

meson: gxbb: enable MMC as boot target

To enable automatic booting from SD card or eMMC the MMC
devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.

Booting from SD card, eMMC, and DHCP are tried in sequence.
A missing or failing device is gracefully handled.

Cc: Andreas Färber <afaerber@suse.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Tested-by: Andreas Färber <afaerber@suse.de>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

include/configs/meson-gxbb-common.h
... ... @@ -39,6 +39,9 @@
39 39 #include <config_distro_defaults.h>
40 40  
41 41 #define BOOT_TARGET_DEVICES(func) \
  42 + func(MMC, mmc, 0) \
  43 + func(MMC, mmc, 1) \
  44 + func(MMC, mmc, 2) \
42 45 func(DHCP, dhcp, na)
43 46  
44 47 #include <config_distro_bootcmd.h>