Thread (9 messages) flat view 9 messages, 3 authors, 2021-06-08

RE: [PATCH v3 2/2] clocksource: Add Intel Keem Bay timer support

From: Sanil, Shruthi <hidden>
Date: 2021-06-04 09:21:08
Also in: lkml

Hi Daniel,
-----Original Message-----
From: Daniel Lezcano <redacted>
Sent: Friday, June 4, 2021 1:37 PM
To: Sanil, Shruthi <redacted>; tglx@linutronix.de;
robh+dt@kernel.org; linux-kernel@vger.kernel.org;
devicetree@vger.kernel.org
Cc: andriy.shevchenko@linux.intel.com; kris.pan@linux.intel.com;
mgross@linux.intel.com; Thokala, Srikanth [off-list ref];
Raja Subramanian, Lakshmi Bai [off-list ref];
Sangannavar, Mallikarjunappa [off-list ref]
Subject: Re: [PATCH v3 2/2] clocksource: Add Intel Keem Bay timer support

On 27/05/2021 08:39, shruthi.sanil@intel.com wrote:
quoted
From: Shruthi Sanil <redacted>

The Intel Keem Bay timer driver supports clocksource and clockevent
features for the timer IP used in Intel Keem Bay SoC.
The timer block supports 1 free running counter and 8 timers.
The free running counter can be used as a clocksource and the timers
can be used as clockevent. Each timer is capable of generating
individual interrupt.
Both the features are enabled through the timer general config register.

Reviewed-by: Andy Shevchenko <redacted>
Signed-off-by: Shruthi Sanil <redacted>
---
 MAINTAINERS                         |   5 +
 drivers/clocksource/Kconfig         |  11 ++
 drivers/clocksource/Makefile        |   1 +
 drivers/clocksource/timer-keembay.c | 255
++++++++++++++++++++++++++++
 4 files changed, 272 insertions(+)
 create mode 100644 drivers/clocksource/timer-keembay.c
diff --git a/MAINTAINERS b/MAINTAINERS index
04babfa8fc76..73543ed60e84 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9278,6 +9278,11 @@ F:	drivers/crypto/keembay/keembay-ocs-hcu-
core.c
quoted
 F:	drivers/crypto/keembay/ocs-hcu.c
 F:	drivers/crypto/keembay/ocs-hcu.h

+INTEL KEEM BAY TIMER SUPPORT
+M:	Shruthi Sanil [off-list ref]
+S:	Maintained
+F:	drivers/clocksource/timer-keembay.c
+
 INTEL MANAGEMENT ENGINE (mei)
 M:	Tomas Winkler [off-list ref]
 L:	linux-kernel@vger.kernel.org
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 39aa21d01e05..08f491cf7f61 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -693,4 +693,15 @@ config MICROCHIP_PIT64B
 	  modes and high resolution. It is used as a clocksource
 	  and a clockevent.

+config KEEMBAY_TIMER
+	bool "Intel Keem Bay timer"
+	depends on ARCH_KEEMBAY
+	select TIMER_OF
Please refer to the other timer option to see how we create silent option. We
want the Kconfig's platform to select the timer, not the user except for
compilation coverage or expert mode.
OK, I'll check and update accordingly.

Thanks,
Shruthi
quoted
+	help
+	  This option enables the support for the Intel Keem Bay
+	  general purpose timer and free running counter driver.
+	  Each timer can generate an individual interrupt and
+	  supports oneshot and periodic modes.
+	  The 64-bit counter can be used as a clock source.
+
 endmenu
Other than that, LGTM.

Thanks
  -- Daniel


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-
blog/> Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help