[PATCH v5 11/11] board: starfive: Dynamic configuration of DT for 1.2A and 1.3B

Rick Chen rickchen36 at gmail.com
Wed Jun 21 03:40:11 CEST 2023


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

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list