[PATCH v1 1/2] rockchip: spl: change call condition rockchip_stimer_init()

Simon Glass sjg at chromium.org
Tue Dec 28 09:34:35 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/spl.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Can you use if(IS_ENABLED(...)) instead of #if ?

Regards,
Simon


More information about the U-Boot mailing list