mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
board: starfive: visionfive2: Add Orange Pi RV selection by product_id
Add XOPIRV identifier for Orange Pi RV to dts selection callback in SPL, and to fdtfile environment variable default value selection in payload. Signed-off-by: E Shattow <e@freeshell.de> Reviewed-by: Hal Feng <hal.feng@starfivetech.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
52c382798c
commit
b2c92a7b1f
@ -131,6 +131,9 @@ int board_fit_config_name_match(const char *name)
|
||||
!strncmp(get_product_id_from_eeprom(), "MARC", 4) &&
|
||||
!get_mmc_size_from_eeprom()) {
|
||||
return 0;
|
||||
} else if (!strcmp(name, "starfive/jh7110-orangepi-rv") &&
|
||||
!strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) {
|
||||
return 0;
|
||||
} else if (!strcmp(name, "starfive/jh7110-pine64-star64") &&
|
||||
!strncmp(get_product_id_from_eeprom(), "STAR64", 6)) {
|
||||
return 0;
|
||||
|
||||
@ -63,6 +63,8 @@ static void set_fdtfile(void)
|
||||
} else {
|
||||
fdtfile = "starfive/jh7110-milkv-marscm-lite.dtb";
|
||||
}
|
||||
} else if (!strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) {
|
||||
fdtfile = "starfive/jh7110-orangepi-rv.dtb";
|
||||
} else if (!strncmp(get_product_id_from_eeprom(), "STAR64", 6)) {
|
||||
fdtfile = "starfive/jh7110-pine64-star64.dtb";
|
||||
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110A", 7)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user