+ drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch added to -mm tree
Subsystems (2)
Subject: + drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 02 Jul 2013 16:13:39 -0700
The patch titled
Subject: drivers/rtc/rtc-sirfsoc.c: add rtc drivers for CSR SiRFprimaII and SiRFatlasVI
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Xianglong Du <[email protected]>
Subject: drivers/rtc/rtc-sirfsoc.c: add rtc drivers for CSR SiRFprimaII and SiRFatlasVI
On CSR SiRFprimaII/atlasVI, there is a programmable 16-bit divider (RTC_DIV) that divides the input 32.768KHz clock to the frequency that users need (E.g. 1 Hz). The divided real-time clock will be used to drive a 32-bit counter (RTC_COUNTER) that provides users with the actual time.
In each cycle of the divided real-time clock, there is a Hertz interrupt generated to the RISC. Users can also configure an alarm (RTC_ALARM). When RTC_COUNTER matches the alarm, there will be an alarm interrupt generated to the RISC.
The system RTC can generate an alarm wake-up signal to notify the power controller to wake up from power saving mode.
---
arch/arm/boot/dts/atlas6.dtsi | 2 arch/arm/boot/dts/prima2.dtsi | 2 drivers/rtc/Kconfig | 7 drivers/rtc/Makefile | 1 drivers/rtc/rtc-sirfsoc.c | 475 ++++++++++++++++++++++++++++++++ 5 files changed, 485 insertions(+), 2 deletions(-)
arch/arm/boot/dts/atlas6.dtsi renamed from arch/arm/boot/dts/atlas6.dtsi~drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi +1 -1
@@ -613,7 +613,7 @@ }; rtc-iobg { - compatible = "sirf,prima2-rtciobg", "sirf-prima2-rtciobg-bus"; + compatible = "sirf,prima2-rtciobg", "sirf-prima2-rtciobg-bus", "simple-bus"; #address-cells = <1>; #size-cells = <1>; reg = <0x80030000 0x10000>;
arch/arm/boot/dts/prima2.dtsi renamed from arch/arm/boot/dts/prima2.dtsi~drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi +1 -1
@@ -610,7 +610,7 @@ }; rtc-iobg { - compatible = "sirf,prima2-rtciobg", "sirf-prima2-rtciobg-bus"; + compatible = "sirf,prima2-rtciobg", "sirf-prima2-rtciobg-bus", "simple-bus"; #address-cells = <1>; #size-cells = <1>; reg = <0x80030000 0x10000>;
drivers/rtc/Kconfig renamed from drivers/rtc/Kconfig~drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi +7 -0
@@ -1242,6 +1242,13 @@ config RTC_DRV_SNVS This driver can also be built as a module, if so, the module will be called "rtc-snvs". +config RTC_DRV_SIRFSOC + tristate "SiRFSOC RTC" + depends on ARCH_SIRF + help + Say "yes" here to support the real time clock on SiRF SOC chips. + This driver can also be built as a module called rtc-sirfsoc. + comment "HID Sensor RTC drivers" config RTC_DRV_HID_SENSOR_TIME
drivers/rtc/Makefile renamed from drivers/rtc/Makefile~drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi +1 -0
@@ -129,3 +129,4 @@ obj-$(CONFIG_RTC_DRV_VT8500) += rtc-vt85 obj-$(CONFIG_RTC_DRV_WM831X) += rtc-wm831x.o obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o obj-$(CONFIG_RTC_DRV_X1205) += rtc-x1205.o +obj-$(CONFIG_RTC_DRV_SIRFSOC) += rtc-sirfsoc.o
drivers/rtc/rtc-sirfsoc.c new file +475 -0
475 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
linux-next.patch drivers-rtc-rtc-sirfsocc-add-rtc-drivers-for-csr-sirfprimaii-and-sirfatlasvi.patch