[PATCH v1 2/2] rockchip: tpl: change call condition rockchip_stimer_init()
Simon Glass
sjg at chromium.org
Tue Dec 28 09:34:37 CET 2021
Hi Johan,
On Sat, 25 Dec 2021 at 05:11, Johan Jonker <jbx6244 at 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 <jbx6244 at gmail.com>
> ---
> arch/arm/mach-rockchip/tpl.c | 5 +++++
> 1 file changed, 5 insertions(+)
Can you use if(IS_ENABLED(...)) instead of #if ?
Regards,
Simon
More information about the U-Boot
mailing list