Skip to contentSkip to conversation

: rtc: Add Sun4V hypervisor RTC driver.

PATCH In review David Miller 1 participant 2 messages Aug 29, 2008 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 9/12 : rtc: Add Sun4V hypervisor RTC driver.

rtc: Add Sun4V hypervisor RTC driver.

---
 drivers/rtc/Kconfig     |    7 ++
 drivers/rtc/Makefile    |    1 +
 drivers/rtc/rtc-sun4v.c |  163 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 171 insertions(+), 0 deletions(-)
 create mode 100644 drivers/rtc/rtc-sun4v.c
drivers/rtc/Kconfig +7 -0
index 5d600ff..23403fa 100644
@@ -592,4 +592,11 @@ config RTC_DRV_PPC
 	 the RTC. This exposes that functionality through the generic RTC
 	 class.
 
+config RTC_DRV_SUN4V
+	bool "SUN4V Hypervisor RTC"
+	depends on SPARC64
+	help
+	  If you say Y here you will get support for the Hypervisor
+	  based RTC on SUN4V systems.
+
 endif # RTC_CLASS
drivers/rtc/Makefile +1 -0
index fed42c2..6850b04 100644
@@ -39,6 +39,7 @@ obj-$(CONFIG_RTC_DRV_M41T94)	+= rtc-m41t94.o
 obj-$(CONFIG_RTC_DRV_M48T59)	+= rtc-m48t59.o
 obj-$(CONFIG_RTC_DRV_M48T86)	+= rtc-m48t86.o
 obj-$(CONFIG_RTC_DRV_BQ4802)	+= rtc-bq4802.o
+obj-$(CONFIG_RTC_DRV_SUN4V)	+= rtc-sun4v.o
 obj-$(CONFIG_RTC_DRV_MAX6900)	+= rtc-max6900.o
 obj-$(CONFIG_RTC_DRV_MAX6902)	+= rtc-max6902.o
 obj-$(CONFIG_RTC_DRV_OMAP)	+= rtc-omap.o
drivers/rtc/rtc-sun4v.c new file +163 -0

163 lines not on this page · raw message

Signature · 1 line
1.5.6.5.GIT
#1 lore raw

From: David Miller <[email protected]>
Date: Thu, 28 Aug 2008 23:09:43 -0700 (PDT)

Quoted 3 lines

rtc: Add Sun4V hypervisor RTC driver.

Testing this driver revealed that while some machines have the proper openfirmware node for this device, others don't.

So I'll rework this to be a platform style driver, just like rtc-starfire