[U-Boot] [PATCH 2/2] arc: use timer driver instead of arch/arc/lib/timer.c

Simon Glass sjg at chromium.org
Wed Nov 2 21:14:09 CET 2016


Hi Vlad,

On 2 November 2016 at 09:44, Vlad Zakharov
<Vladislav.Zakharov at synopsys.com> wrote:
> This commit replaces legacy timer code with usage of arc timer
> driver.
>
> Also it adds timer0 device tree node with corresponding
> "clock-frequency" property.
>
> Therefore we remove legacy CONFIG_SYS_TIMER_RATE config symbol
> that is not longer required.
>
> Furthermore the commit adds CONFIG_TIMER and CONFIG_ARC_TIMER
> config symbols to arc-specific defconfigs.
>
> Signed-off-by: Vlad Zakharov <vzakhar at synopsys.com>
> ---
>  arch/arc/dts/skeleton.dtsi    |  6 ++++++
>  arch/arc/lib/Makefile         |  1 -
>  arch/arc/lib/timer.c          | 24 ------------------------
>  configs/axs101_defconfig      |  2 ++
>  configs/axs103_defconfig      |  2 ++
>  configs/nsim_700_defconfig    |  2 ++
>  configs/nsim_700be_defconfig  |  2 ++
>  configs/nsim_hs38_defconfig   |  2 ++
>  configs/nsim_hs38be_defconfig |  2 ++
>  configs/tb100_defconfig       |  2 ++
>  include/configs/axs10x.h      |  2 --
>  11 files changed, 20 insertions(+), 27 deletions(-)
>  delete mode 100644 arch/arc/lib/timer.c

Reviewed-by: Simon Glass <sjg at chromium.org>

You might be able to add these to your arc Kconfig instead of adding
it to each board:

select CONFIG_TIMER
select CONFIG_ARC_TIMER

[..]


More information about the U-Boot mailing list