[PATCH v2 0/3] rockchip: rk35xx: Implement checkboard() to print SoC variant

Jonas Karlman jonas at kwiboo.se
Sat Nov 2 21:37:38 CET 2024


Information about what SoC model, variant and version can be found in
OTP. This series use this information in checkboard() to print out the
running SoC model, variant and version.

There are some asumptions taken on how some of the OTP values are
encoded, however for my boards this seem to match and something like
one of the following is shown with this applied:

  SoC:   RK3566 v1
  SoC:   RK3566 v2
  SoC:   RK3566T v2
  SoC:   RK3568 v2
  SoC:   RK3568B2 v2
  SoC:   RK3568J v2

  SoC:   RK3582 v1
  SoC:   RK3588 v0
  SoC:   RK3588 v1
  SoC:   RK3588S v0
  SoC:   RK3588S v1
  SoC:   RK3588S2 v1

  SoC:   RK3308B
  SoC:   RK3308B-S

Changes in v2:
- Drop changes in generic-rk35xx_defconfig
- Update code comments
- Add patch for rk3308

This can probably be converted into an sysinfo driver in a future series,
once other pending changes to sysinfo core have settled.

Jonas Karlman (3):
  rockchip: rk356x: Implement checkboard() to print SoC variant
  rockchip: rk3588: Implement checkboard() to print SoC variant
  rockchip: rk3308: Implement checkboard() to print SoC variant

 arch/arm/dts/rk356x-u-boot.dtsi        |  4 ++
 arch/arm/dts/rk3588s-u-boot.dtsi       |  4 ++
 arch/arm/mach-rockchip/rk3308/rk3308.c | 16 ++++++
 arch/arm/mach-rockchip/rk3568/rk3568.c | 67 ++++++++++++++++++++++++++
 arch/arm/mach-rockchip/rk3588/rk3588.c | 58 ++++++++++++++++++++++
 5 files changed, 149 insertions(+)

-- 
2.46.2



More information about the U-Boot mailing list