From: Vlad Zakharov <Vladislav.Zakharov@synopsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/2] drivers: timer: inroduce ARC timer driver
Date: Thu, 17 Nov 2016 16:44:14 +0300 [thread overview]
Message-ID: <1479390256-14716-1-git-send-email-vzakhar@synopsys.com> (raw)
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 v2..v3
- Use timer_conv_64 in arc_timer_get_count to prevent 32-bit timer overflow
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
next reply other threads:[~2016-11-17 13:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 13:44 Vlad Zakharov [this message]
2016-11-17 13:44 ` [U-Boot] [PATCH v3 1/2] drivers: timer: Introduce ARC timer driver Vlad Zakharov
2016-11-17 13:44 ` [U-Boot] [PATCH v3 2/2] arc: use timer driver instead of arch/arc/lib/timer.c Vlad Zakharov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1479390256-14716-1-git-send-email-vzakhar@synopsys.com \
--to=vladislav.zakharov@synopsys.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.