]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-imx8mm: improve and extend boot devices
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Mon, 22 Aug 2022 13:06:02 +0000 (15:06 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 18 Sep 2022 20:56:10 +0000 (22:56 +0200)
- Annotate boot devices available in spl_board_boot_device().
- Drop SD3_BOOT/MMC3_BOOT not available for boot on Verdin iMX8M Mini.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/verdin-imx8mm/spl.c

index 685ac94f4ca1a99e23adf3bfbdf9e5c474f5b5cf..fb9aae6c9c84755beeeb36d8f46babe4191250f8 100644 (file)
@@ -34,14 +34,11 @@ DECLARE_GLOBAL_DATA_PTR;
 int spl_board_boot_device(enum boot_device boot_dev_spl)
 {
        switch (boot_dev_spl) {
-       case MMC1_BOOT:
+       case MMC1_BOOT: /* eMMC */
                return BOOT_DEVICE_MMC1;
-       case SD2_BOOT:
+       case SD2_BOOT: /* SD card */
        case MMC2_BOOT:
                return BOOT_DEVICE_MMC2;
-       case SD3_BOOT:
-       case MMC3_BOOT:
-               return BOOT_DEVICE_MMC1;
        case USB_BOOT:
                return BOOT_DEVICE_BOARD;
        default:
@@ -83,7 +80,6 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-
 __weak void board_early_init(void)
 {
        init_uart_clk(0);