mbox series

[RFC,v2,0/2] clocksource: davinci-timer: new driver

Message ID 20190523125813.29506-1-brgl@bgdev.pl (mailing list archive)
Headers show
Series clocksource: davinci-timer: new driver | expand

Message

Bartosz Golaszewski May 23, 2019, 12:58 p.m. UTC
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Hi Daniel,

this is another try at the davinci clocksource driver. Changes in
regard to v1 listed below. As before, the driver is split into two
parts (one for clockevent and one for clocksource).

v1 -> v2:
- changed the format of the copyright notice
- removed all mentiones of the periodic timer setting
- added caching of the TCR register value so that its updating doesn't
  require a read
- split the timer configuration for clock events into the
  set_state_oneshot() and set_state_shutdown() callbacks

Bartosz Golaszewski (2):
  clocksource: davinci-timer: add support for clockevents
  clocksource: timer-davinci: add support for clocksource

 drivers/clocksource/Kconfig         |   5 +
 drivers/clocksource/Makefile        |   1 +
 drivers/clocksource/timer-davinci.c | 355 ++++++++++++++++++++++++++++
 include/clocksource/timer-davinci.h |  44 ++++
 4 files changed, 405 insertions(+)
 create mode 100644 drivers/clocksource/timer-davinci.c
 create mode 100644 include/clocksource/timer-davinci.h