Thread (2 messages) flat view 2 messages, 2 authors, 2014-09-15

Re: [PATCH] rtc/tpo: Driver to support rtc and wakeup on PowerNV platform

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2014-09-15 03:28:19

On Wed, 2014-09-10 at 11:08 +0530, Neelesh Gupta wrote:
The patch implements the OPAL rtc driver that binds with the rtc
driver subsystem. The driver uses the platform device infrastructure
to probe the rtc device and register it to rtc class framework. The
'wakeup' is supported depending upon the property 'has-tpo' present
in the OF node. It provides a way to load the generic rtc driver in
in the absence of an OPAL driver.

The patch also moves the existing OPAL rtc get/set time interfaces to the
new driver and exposes the necessary OPAL calls using EXPORT_SYMBOL_GPL.

Signed-off-by: Neelesh Gupta <redacted>
---

Note:
This patch depends upon the below patch posted on 'linuxppc-dev@lists.ozlabs.org'
[PATCH 1/4] powerpc/powernv: Add OPAL check token call
Signed-off-by: Michael Neuling <redacted>

 arch/powerpc/include/asm/opal.h                |    7 -
 arch/powerpc/kernel/time.c                     |    1 
 arch/powerpc/platforms/powernv/opal-async.c    |    3 
 arch/powerpc/platforms/powernv/opal-rtc.c      |   63 ++----
 arch/powerpc/platforms/powernv/opal-wrappers.S |    2 
 arch/powerpc/platforms/powernv/opal.c          |    6 +
 arch/powerpc/platforms/powernv/setup.c         |    2 
 drivers/rtc/Kconfig                            |   11 +
 drivers/rtc/Makefile                           |    1 
 drivers/rtc/rtc-opal.c                         |  257 ++++++++++++++++++++++++
 10 files changed, 305 insertions(+), 48 deletions(-)
 create mode 100644 drivers/rtc/rtc-opal.c

Alessandro, given this depends on other things in the powerpc tree do you mind
if we take this through the powerpc tree with your Ack?

Or I can create a topic branch with the required powerpc changes.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help