On Wed, 29 Dec 2021 at 09:59, Johan Jonker <jbx6...@gmail.com> wrote: > > The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE > defined. Currently only rk3188 has an exception. Make this more > generic and call the function rockchip_stimer_init() only when > CONFIG_ROCKCHIP_STIMER_BASE is available. > > Signed-off-by: Johan Jonker <jbx6...@gmail.com> > --- > > Changed V2: > use IS_ENABLED > add include kconfig.h > move define location so that rockchip_stimer_init() is always > visible to the compiler > --- > arch/arm/mach-rockchip/tpl.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >
Reviewed-by: Simon Glass <s...@chromium.org>