[PATCH v3 08/11] siemens: capricorn: always detect emmc device
Heiko Schocher
hs at nabladev.com
Tue Feb 17 17:39:08 CET 2026
drop Environment variable mmcautodetect and the board logic
behind it, as we want always to autodetct the emmc device.
Signed-off-by: Heiko Schocher <hs at nabladev.com>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
---
(no changes since v2)
Changes in v2:
Added Reviewed-by from Peng
board/siemens/capricorn/board.c | 13 -------------
board/siemens/capricorn/capricorn_default.env | 1 -
2 files changed, 14 deletions(-)
diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index 34e7f2d1713..ba6c96a409c 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -357,16 +357,6 @@ int board_mmc_get_env_dev(int devno)
return devno;
}
-static int check_mmc_autodetect(void)
-{
- char *autodetect_str = env_get("mmcautodetect");
-
- if (autodetect_str && (strcmp(autodetect_str, "yes") == 0))
- return 1;
-
- return 0;
-}
-
/* This should be defined for each board */
__weak int mmc_map_to_kernel_blk(int dev_no)
{
@@ -377,9 +367,6 @@ void board_late_mmc_env_init(void)
{
u32 dev_no = mmc_get_env_dev();
- if (!check_mmc_autodetect())
- return;
-
env_set_ulong("mmcdev", dev_no);
}
diff --git a/board/siemens/capricorn/capricorn_default.env b/board/siemens/capricorn/capricorn_default.env
index c8b5b3d7da3..ad88f7ed770 100644
--- a/board/siemens/capricorn/capricorn_default.env
+++ b/board/siemens/capricorn/capricorn_default.env
@@ -45,4 +45,3 @@ kboot=booti
bootcmd_mfg=run mfgtool_args; if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot usb auto; fi;
fastboot_bytes=124c00
fastboot_dev=mmc
-mmcautodetect=yes
--
2.20.1
More information about the U-Boot
mailing list