]> git.sur5r.net Git - u-boot/commitdiff
imx: nitrogen6x: Make use of both uSD and SD slots to load script or kernel on Sabrel...
authorGuillaume GARDET <guillaume.gardet@free.fr>
Thu, 11 Sep 2014 09:59:52 +0000 (11:59 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 22 Sep 2014 13:52:58 +0000 (15:52 +0200)
Sabrelite board has two solts: 0 is SD3 (bottom) slot and 1 is uSD4 (top) slot.
This patch makes use of both slots instead of only one.

Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Eric Nelson <eric.nelson@boundarydevices.com>
Reviewed-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Eric Nelson <eric.nelson@boundarydevices.com>
Reviewed-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Eric Nelson <eric.nelson@boundarydevices.com>
include/configs/nitrogen6x.h

index d4b0ac9fdb189150aa42d6c37aa0c3d47502eaeb..2a1eb3b773d90eda8936028e97c64223514761cf 100644 (file)
        "fdt_addr=0x18000000\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
-       "mmcdev=0\0" \
+       "mmcdevs=0 1\0" \
        "mmcpart=1\0" \
        "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
        "mmcargs=setenv bootargs console=${console},${baudrate} " \
                "fi;\0"
 
 #define CONFIG_BOOTCOMMAND \
-          "mmc dev ${mmcdev}; if mmc rescan; then " \
-                  "if run loadbootscript; then " \
-                          "run bootscript; " \
-                  "else " \
-                          "if run loaduimage; then " \
-                                  "run mmcboot; " \
-                          "else run netboot; " \
-                          "fi; " \
-                  "fi; " \
-          "else run netboot; fi"
+       "for mmcdev in ${mmcdevs}; do " \
+               "mmc dev ${mmcdev}; " \
+               "if mmc rescan; then " \
+                       "if run loadbootscript; then " \
+                               "run bootscript; " \
+                       "else " \
+                               "if run loaduimage; then " \
+                                       "run mmcboot; " \
+                               "fi; " \
+                       "fi; " \
+               "fi; " \
+       "done; " \
+       "run netboot; "
 #else
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "console=ttymxc1\0" \