diff options
| author | Heiko Schocher <hs@nabladev.com> | 2026-02-17 17:39:08 +0100 |
|---|---|---|
| committer | Fabio Estevam <festevam@gmail.com> | 2026-02-28 15:31:50 -0300 |
| commit | c019f813149325d4f3f8f9b94255e3fb4d3881e5 (patch) | |
| tree | 3ccd68883f3711e2027badf3ffd151812fe6131f | |
| parent | 4e67785e6dfa37b8f08c432bd9cdfcb0919d00ec (diff) | |
siemens: capricorn: always detect emmc device
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@nabladev.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
| -rw-r--r-- | board/siemens/capricorn/board.c | 13 | ||||
| -rw-r--r-- | board/siemens/capricorn/capricorn_default.env | 1 |
2 files changed, 0 insertions, 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 |
