]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: tpl: use IS_ENABLED for timer_init() call condition
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:05 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
commitbb00064c29bc3ba56e545ccad43f1b386851d52f
tree7d53ce3b3fce4ea7042f1cf11613b481d7396b84
parentcee8d307b11cbe1016b8e3fae18ef0c17b52a805
rockchip: tpl: use IS_ENABLED for timer_init() call condition

Not all Rockchip SoC models use the ARM arch timer.
Call the function timer_init() only when
CONFIG_SYS_ARCH_TIMER is available.
Use the call condition IS_ENABLED to increase
build coverage and make the code easier to read.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/tpl.c