tizen: bootscript: Select FDT file for VF2 69/297069/2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 9 Aug 2023 21:01:37 +0000 (23:01 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 10 Aug 2023 08:57:55 +0000 (10:57 +0200)
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>
tizen/bootscript/tizen-boot-vf2.scr

index f5c3074..d3f6d33 100644 (file)
@@ -111,6 +111,15 @@ fi
 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 */