board: starfive: visionfive2: Support VisionFive 2 Lite eMMC

Add emmc detection to VisionFive 2 Lite DT selection and
fdtfile environment variable setting.

Reviewed-by: E Shattow <e@freeshell.de>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This commit is contained in:
Hal Feng
2026-07-26 19:39:21 -07:00
committed by Leo Yu-Chi Liang
parent 13b990d05f
commit be256bd560
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -144,7 +144,12 @@ int board_fit_config_name_match(const char *name)
!strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
return 0;
} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite") &&
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
!get_mmc_size_from_eeprom()) {
return 0;
} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite-emmc") &&
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
get_mmc_size_from_eeprom()) {
return 0;
}
@@ -72,7 +72,11 @@ static void set_fdtfile(void)
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
fdtfile = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
if (get_mmc_size_from_eeprom()) {
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite-emmc.dtb";
} else {
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
}
} else {
log_err("Unknown product\n");
return;