[RFC 10/10] board: starfive: visionfive2: Add VisionFive 2 Lite fdt selection

Hal Feng
2025-08-29T14:32:10Z

Set $fdtfile to the VisionFive 2 Lite DTB if the board is matched.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
board/starfive/visionfive2/starfive_visionfive2.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c
index f38433e94ac..912e8cb967a 100644
--- a/board/starfive/visionfive2/starfive_visionfive2.c
+++ b/board/starfive/visionfive2/starfive_visionfive2.c
@@ -65,6 +65,8 @@ static void set_fdtfile(void)
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110B", 7) ||
!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/jh7110s-starfive-visionfive-2-lite.dtb";
} else {
log_err("Unknown product\n");
return;
--
2.43.2