rockchip: px30: use rockchip_stimer_init from spl_common.o for TPL
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 28 Oct 2025 16:57:34 +0000 (17:57 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 2 Nov 2025 18:15:23 +0000 (12:15 -0600)
commitad3fb3808e59b3eab455bfa7fd4840e611df3204
tree92ec4fa8aa8e1c12a8e614eabe924625272a6856
parent0940d65eaa6737aaf55494f28d9b641bdbec29f7
rockchip: px30: use rockchip_stimer_init from spl_common.o for TPL

Instead of redefining what is essentially the same code in
secure_timer_init, let's simply use rockchip_stimer_init from
spl_common.o instead.

This increases the size of the TPL by 16B, due to the added check of
STIMER already being enabled. Experimentally, STIMER is not already
enabled when in TPL.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/Makefile
arch/arm/mach-rockchip/px30-board-tpl.c