Skip to content

Commit 8a87f1a

Browse files
committed
Merge tag 'sunxi-drivers-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into next/drivers
Pull "Allwinner drivers additions for 3.18" from Maxime Ripard: Nothing major, just handling the RTC driver changes needed for the A31/A23. Signed-off-by: Arnd Bergmann <arnd@arndb.de> * tag 'sunxi-drivers-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux: rtc: sunxi: Depend on platforms sun4i/sun7i that actually have the rtc rtc: sun6i: Add sun6i RTC driver
2 parents b2fc3f3 + 64a1925 commit 8a87f1a

4 files changed

Lines changed: 473 additions & 1 deletion

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* sun6i Real Time Clock
2+
3+
RTC controller for the Allwinner A31
4+
5+
Required properties:
6+
- compatible : Should be "allwinner,sun6i-a31-rtc"
7+
- reg : physical base address of the controller and length of
8+
memory mapped region.
9+
- interrupts : IRQ lines for the RTC alarm 0 and alarm 1, in that order.
10+
11+
Example:
12+
13+
rtc: rtc@01f00000 {
14+
compatible = "allwinner,sun6i-a31-rtc";
15+
reg = <0x01f00000 0x54>;
16+
interrupts = <0 40 4>, <0 41 4>;
17+
};

‎drivers/rtc/Kconfig‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,9 +1175,16 @@ config RTC_DRV_SUN4V
11751175
If you say Y here you will get support for the Hypervisor
11761176
based RTC on SUN4V systems.
11771177

1178+
config RTC_DRV_SUN6I
1179+
tristate "Allwinner A31 RTC"
1180+
depends on MACH_SUN6I || MACH_SUN8I
1181+
help
1182+
If you say Y here you will get support for the RTC found on
1183+
Allwinner A31.
1184+
11781185
config RTC_DRV_SUNXI
11791186
tristate "Allwinner sun4i/sun7i RTC"
1180-
depends on ARCH_SUNXI
1187+
depends on MACH_SUN4I || MACH_SUN7I
11811188
help
11821189
If you say Y here you will get support for the RTC found on
11831190
Allwinner A10/A20.

‎drivers/rtc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ obj-$(CONFIG_RTC_DRV_STARFIRE) += rtc-starfire.o
128128
obj-$(CONFIG_RTC_DRV_STK17TA8) += rtc-stk17ta8.o
129129
obj-$(CONFIG_RTC_DRV_STMP) += rtc-stmp3xxx.o
130130
obj-$(CONFIG_RTC_DRV_SUN4V) += rtc-sun4v.o
131+
obj-$(CONFIG_RTC_DRV_SUN6I) += rtc-sun6i.o
131132
obj-$(CONFIG_RTC_DRV_SUNXI) += rtc-sunxi.o
132133
obj-$(CONFIG_RTC_DRV_TEGRA) += rtc-tegra.o
133134
obj-$(CONFIG_RTC_DRV_TEST) += rtc-test.o

0 commit comments

Comments
 (0)