]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: starfive: Dynamic configuration of DT for 1.2A and 1.3B
authorYanhong Wang <yanhong.wang@starfivetech.com>
Thu, 15 Jun 2023 09:36:52 +0000 (17:36 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 12 Jul 2023 05:21:40 +0000 (13:21 +0800)
commitc9745365f516a361be9cbe3568d2b8608084bbbf
tree20aaefd1cb8ba34f4841fb63a685957011c228d1
parent38d900b409199df02a1a26dfcb464d4d2b6e27d2
board: starfive: Dynamic configuration of DT for 1.2A and 1.3B

The main difference between StarFive VisionFive 2 1.2A and 1.3B is gmac.
You can read the PCB version of the current board by
get_pcb_revision_from_eeprom(), and then dynamically configure the
difference of gmac in spl_perform_fixups() according to different PCB
versions, so that one DT and one defconfig can support both 1.2A and
1.3B versions, which is more user-friendly.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
board/starfive/visionfive2/spl.c