From: Vlad Zakharov <Vladislav.Zakharov@synopsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/3] arc: introduce timer driver and update device tree
Date: Wed, 8 Feb 2017 11:24:31 +0300 [thread overview]
Message-ID: <1486542274-26536-1-git-send-email-vzakhar@synopsys.com> (raw)
ARC cores may have up to 2 built-in timers: timer0 and timer1,
usually at least one of them exists. They both are driven by the
same core clock.
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.
This patch series replaces legacy approach to access ARC timer
via specific code in "arch/arc/lib/time.c" and uses timer
driver instead.
We want to have common device tree blobs for both Linux and U-Boot.
To achieve this the patch updates arc device trees with the following:
1. Separate axs10x.dts device tree in order to reflect the real
structure of AXS101 and AXS103 development boards.
2. Add timer device to skeleton ARC device tree.
3. Add core_clk devices to all ARC boards as it is referenced from
timer device.
---
Changes v1..v2:
- Minor cleanups of code
- Added comments that describe why code is duplicated in arc_timer_probe
Vlad Zakharov (3):
drivers: timer: Introduce ARC timer driver
arc: dts: separate single axs10x.dts file
arc: use timer driver for ARC boards
arch/Kconfig | 3 +
arch/arc/Kconfig | 9 ++-
arch/arc/dts/Makefile | 3 +-
arch/arc/dts/abilis_tb100.dts | 12 +++-
arch/arc/dts/axc001.dtsi | 19 +++++
arch/arc/dts/axc003.dtsi | 19 +++++
arch/arc/dts/axs101.dts | 19 +++++
arch/arc/dts/axs103.dts | 19 +++++
arch/arc/dts/axs10x.dts | 57 ---------------
arch/arc/dts/axs10x_mb.dtsi | 66 +++++++++++++++++
arch/arc/dts/nsim.dts | 12 +++-
arch/arc/dts/skeleton.dtsi | 19 ++++-
arch/arc/include/asm/arcregs.h | 4 ++
board/synopsys/axs10x/Kconfig | 2 +-
configs/axs101_defconfig | 4 +-
configs/axs103_defconfig | 3 +-
doc/device-tree-bindings/timer/arc_timer.txt | 24 +++++++
drivers/timer/Kconfig | 9 +++
drivers/timer/Makefile | 1 +
drivers/timer/arc_timer.c | 103 +++++++++++++++++++++++++++
include/configs/axs10x.h | 2 -
include/configs/nsim.h | 5 --
include/configs/tb100.h | 5 --
23 files changed, 334 insertions(+), 85 deletions(-)
create mode 100644 arch/arc/dts/axc001.dtsi
create mode 100644 arch/arc/dts/axc003.dtsi
create mode 100644 arch/arc/dts/axs101.dts
create mode 100644 arch/arc/dts/axs103.dts
delete mode 100644 arch/arc/dts/axs10x.dts
create mode 100644 arch/arc/dts/axs10x_mb.dtsi
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:[~2017-02-08 8:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-08 8:24 Vlad Zakharov [this message]
2017-02-08 8:24 ` [U-Boot] [PATCH v2 1/3] drivers: timer: Introduce ARC timer driver Vlad Zakharov
2017-02-08 8:24 ` [U-Boot] [PATCH v2 2/3] arc: dts: separate single axs10x.dts file Vlad Zakharov
2017-02-08 8:24 ` [U-Boot] [PATCH v2 3/3] arc: use timer driver for ARC boards 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=1486542274-26536-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.