[PATCH v3 0/3] rockchip: rk35xx: Implement checkboard() to print SoC variant
Jonas Karlman
jonas at kwiboo.se
Sun Nov 10 01:56:14 CET 2024
Information about what SoC model and variant can be found in OTP. This
series use this information in checkboard() to print out the running
SoC model and variant, should match what is printed on the SoC.
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
SoC: RK3566T
SoC: RK3568
SoC: RK3568B2
SoC: RK3568J
SoC: RK3582
SoC: RK3588
SoC: RK3588S
SoC: RK3588S2
SoC: RK3308B
SoC: RK3308B-S
Changes in v3:
- Fix build issue with MISC=n or ROCKCHIP_OTP=n
- Remove use of cpu-version
- Use log_debug() instead of debug()
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 | 61 ++++++++++++++++++++++++++
arch/arm/mach-rockchip/rk3588/rk3588.c | 52 ++++++++++++++++++++++
5 files changed, 137 insertions(+)
--
2.46.2
More information about the U-Boot
mailing list