[PATCH v3 3/6] rockchip: spl: change call condition rockchip_stimer_init()
Simon Glass
sjg at chromium.org
Wed Jan 12 21:03:23 CET 2022
On Thu, 30 Dec 2021 at 09:48, 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>
> ---
>
> Changed V3:
> use CONFIG_ROCKCHIP_STIMER
>
> 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/spl.c | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list