
From: Yanhong Wang yanhong.wang@starfivetech.com Sent: Thursday, June 15, 2023 5:37 PM To: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) rick@andestech.com; Leo Yu-Chi Liang(梁育齊) ycliang@andestech.com; Joe Hershberger joe.hershberger@ni.com; Ramon Fried rfried.dev@gmail.com Cc: Yanhong Wang yanhong.wang@starfivetech.com; Torsten Duwe duwe@lst.de; Leyfoon Tan leyfoon.tan@starfivetech.com; samin . guo samin.guo@starfivetech.com; Walker Chen walker.chen@starfivetech.com; Hal Feng hal.feng@starfivetech.com Subject: [PATCH v5 11/11] 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
board/starfive/visionfive2/spl.c | 157 +++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+)
Reviewed-by: Rick Chen rick@andestech.com