[PATCH 0/4] rockchip: use rockchip_stimer_init from spl_common.c on PX30/RK3036 + "cosmetic" fix

Quentin Schulz foss+uboot at 0leil.net
Tue Oct 28 17:57:33 CET 2025


This adds PX30 and RK3036 to the list of SoCs using the same
implementation for its timer init via the weak function in spl_common.
It seems there is a mix of version IP in RK35 series as RK3506, RK3562
and RK3566/RK3568 are using something similar to the "old" SoCs but
RK3528, RK3576 and RK3588 use a different one. RK3399 also has slightly
different implem compared to the old IP where we write zeroes to two
more registers (and the control register is at a different address).

Also fix the improper value of free running mode for the timer on
function to use for the old IP + RK3399. Luckily, the mistake doesn't
actually change the value written to the register before and after the
fix so no intended change.

Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
Quentin Schulz (4):
      rockchip: px30: use rockchip_stimer_init from spl_common.o for TPL
      rockchip: rk3036: use rockchip_stimer_init from spl_common.o
      rockchip: rk3399: fix TIMER_FMODE constant
      rockchip: spl_common: fix TIMER_FMODE constant

 arch/arm/mach-rockchip/Makefile           |  4 ++--
 arch/arm/mach-rockchip/px30-board-tpl.c   | 28 +++-------------------------
 arch/arm/mach-rockchip/rk3036-board-spl.c | 21 +--------------------
 arch/arm/mach-rockchip/rk3399/rk3399.c    |  4 ++--
 arch/arm/mach-rockchip/spl_common.c       |  4 ++--
 5 files changed, 10 insertions(+), 51 deletions(-)
---
base-commit: 23987e10905146def3ab61e55ec912c6e742efdc
change-id: 20251028-px30-rk3306-common-tpl-809632f052d4

Best regards,
-- 
Quentin Schulz <quentin.schulz at cherry.de>



More information about the U-Boot mailing list