public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] drivers: timer: inroduce ARC timer driver
@ 2016-11-03 15:52 Vlad Zakharov
  2016-11-03 15:52 ` [U-Boot] [PATCH v2 1/2] drivers: timer: Introduce " Vlad Zakharov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Vlad Zakharov @ 2016-11-03 15:52 UTC (permalink / raw)
  To: u-boot

This patch series replaces legacy approach to access ARC timer
via specific code in "arch/arc/lib/time.c" and uses timer
driver instead.

ARC cores may have up to 2 built-in timers: timer0 and timer1,
usually at least one of them exists.

They are controlled through auxiliary registers and so we
don't have to remap their control registers as we used to do
with MMIO registers of external peripheral devices.

Cc: Simon Glass <sjg@chromium.org>
---
Changes v1..v2
 - Minor clean-ups of code and comments.
 - Moved TIMER and ARC_TIMER config symbols from each defconfig to
arch Kconfig file to avoid duplication

Vlad Zakharov (2):
  drivers: timer: Introduce ARC timer driver
  arc: use timer driver instead of arch/arc/lib/timer.c

 arch/arc/dts/skeleton.dtsi                   |  6 ++
 arch/arc/include/asm/arcregs.h               |  4 ++
 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 +
 doc/device-tree-bindings/timer/arc_timer.txt | 24 +++++++
 drivers/timer/Kconfig                        |  7 ++
 drivers/timer/Makefile                       |  1 +
 drivers/timer/arc_timer.c                    | 95 ++++++++++++++++++++++++++++
 include/configs/axs10x.h                     |  2 -
 16 files changed, 151 insertions(+), 27 deletions(-)
 delete mode 100644 arch/arc/lib/timer.c
 create mode 100644 doc/device-tree-bindings/timer/arc_timer.txt
 create mode 100644 drivers/timer/arc_timer.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-21 14:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-03 15:52 [U-Boot] [PATCH v2 0/2] drivers: timer: inroduce ARC timer driver Vlad Zakharov
2016-11-03 15:52 ` [U-Boot] [PATCH v2 1/2] drivers: timer: Introduce " Vlad Zakharov
2016-11-03 15:52 ` [U-Boot] [PATCH v2 2/2] arc: use timer driver instead of arch/arc/lib/timer.c Vlad Zakharov
2016-11-21 14:16 ` [U-Boot] [PATCH v2 0/2] drivers: timer: inroduce ARC timer driver Alexey Brodkin
2016-11-21 14:19   ` Alexey Brodkin
2016-11-21 14:19   ` Tom Rini
2016-11-21 14:24     ` Alexey Brodkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox