]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: starfive: handle compatible property in dynamic DT configuration
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 10 Jan 2024 20:17:44 +0000 (21:17 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 31 Jan 2024 08:52:07 +0000 (16:52 +0800)
commit465e7e6d506a419ab12ed0817d8f083d43584602
tree8a22445f5367fa01a0646ec35716d1e4769fe629
parenta400ffad022b1bc8a14ba16342c74cf9c06889fd
board: starfive: handle compatible property in dynamic DT configuration

The difference between the StarFive VisionFive 2 1.2A and 1.3B boards is
handled dynamically by looking at the PCB version in the EEPROM in order
to have a single u-boot version for both versions of the board. While
the "model" property is correctly handled, the "compatible" one is
always the the one of version 1.3b.

This patch add support for dynamically configuring that property.

Fixes: 9b7060bd15e7 ("riscv: dts: jh7110: Combine the board device tree files of 1.2A and 1.3B")
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
board/starfive/visionfive2/spl.c