Select FDT file for VisionFive2 board depending on the revision of
the board.
Change-Id: I05bf589572000937451bb94510f3f67755e425e9
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
echo "console: ${console}"
# DT image by model
+if setexpr pcb_revision sub "^VF7110(.).*" "\\1" "${serial#}"; then
+ if test "${pcb_revision}" = "A" -o "${pcb_revision}" = "a"; then
+ setenv fdtfile "jh7110-starfive-visionfive-2-v1.2a.dtb"
+ fi
+ if test "${pcb_revision}" = "B" -o "${pcb_revision}" = "b"; then
+ setenv fdtfile "jh7110-starfive-visionfive-2-v1.3b.dtb"
+ fi
+fi
+
setenv boot_prefixes \"/\"
# To use cmdline for using serial console. /* Normal mode */