tizen: amlogic: vim3: adjust MMC device numbers for Tizen
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 17 Nov 2021 09:28:09 +0000 (10:28 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:28:36 +0000 (20:28 +0900)
Adjust MMC device numbers for SD to #0 and eMMC to #1 to match other
Tizen boards and simplify boot scripts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
board/amlogic/vim3/vim3.c

index bbc2d826e05056aeb536f9cf694e3a7a7575599d..761209d420792417c8eb40cf2763cc9c14172e74 100644 (file)
@@ -20,9 +20,9 @@ int mmc_get_env_dev(void)
 {
        switch (meson_get_boot_device()) {
        case BOOT_DEVICE_EMMC:
-               return 2;
-       case BOOT_DEVICE_SD:
                return 1;
+       case BOOT_DEVICE_SD:
+               return 0;
        default:
                /* boot device is not EMMC|SD */
                return -1;