|
|
Subscribe / Log in / New account

clocksource/drivers/atcpit100: Add andestech atcpit100 timer

From:  Greentime Hu <green.hu-AT-gmail.com>
To:  greentime-AT-andestech.com, linux-kernel-AT-vger.kernel.org, arnd-AT-arndb.de, linux-arch-AT-vger.kernel.org, tglx-AT-linutronix.de, jason-AT-lakedaemon.net, marc.zyngier-AT-arm.com, robh+dt-AT-kernel.org, netdev-AT-vger.kernel.org, deanbo422-AT-gmail.com, devicetree-AT-vger.kernel.org, viro-AT-zeniv.linux.org.uk, dhowells-AT-redhat.com, will.deacon-AT-arm.com, daniel.lezcano-AT-linaro.org, linux-serial-AT-vger.kernel.org, geert.uytterhoeven-AT-gmail.com, linus.walleij-AT-linaro.org, mark.rutland-AT-arm.com, greg-AT-kroah.com, ren_guo-AT-c-sky.com, rdunlap-AT-infradead.org, davem-AT-davemloft.net, jonas-AT-southpole.se, stefan.kristiansson-AT-saunalahti.fi, shorne-AT-gmail.com
Subject:  [PATCH v6 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer
Date:  Mon, 15 Jan 2018 13:57:28 +0800
Message-ID:  <cover.1515766198.git.green.hu@gmail.com>
Cc:  Greentime Hu <green.hu-AT-gmail.com>, rick-AT-andestech.com

ATCPIT100 is often used on the Andes architecture,
This timer provide 4 PIT channels. Each PIT channel is a
multi-function timer, can be configured as 32,16,8 bit timers
or PWM as well.

For system timer it will set channel 1 32-bit timer0 as clock
source and count downwards until underflow and restart again.

It also set channel 0 32-bit timer0 as clock event and count
downwards until condition match. It will generate an interrupt
for handling periodically.

Changes in v6:
 - To select TIMER_OF in drivers/clocksource/Kconfig instead of arch/nds32/Kconfig
 - Refine Kconfig
 - Update license format to SPDX-License-Identifier

Rick Chen (3):
  clocksource/drivers/atcpit100: Add andestech atcpit100 timer
  clocksource/drivers/atcpit100: VDSO support
  dt-bindings: timer: Add andestech atcpit100 timer binding doc

 .../bindings/timer/andestech,atcpit100-timer.txt   |   33 +++
 drivers/clocksource/Kconfig                        |    9 +
 drivers/clocksource/Makefile                       |    1 +
 drivers/clocksource/timer-atcpit100.c              |  262 ++++++++++++++++++++
 4 files changed, 305 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/andestech,atcpit100-timer.txt
 create mode 100644 drivers/clocksource/timer-atcpit100.c

-- 
1.7.9.5



Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds