gemini: add 4.1 support
[openwrt/svn-archive/archive.git] / target / linux / gemini / patches-4.1 / 002-gemini-rtc.patch
1 --- a/drivers/rtc/Kconfig
2 +++ b/drivers/rtc/Kconfig
3 @@ -1182,6 +1182,15 @@ config RTC_DRV_BFIN
4 This driver can also be built as a module. If so, the module
5 will be called rtc-bfin.
6
7 +config RTC_DRV_GEMINI
8 + tristate "Gemini SoC RTC"
9 + help
10 + If you say Y here you will get support for the
11 + RTC found on Gemini SoC's.
12 +
13 + This driver can also be built as a module. If so, the module
14 + will be called rtc-gemini.
15 +
16 config RTC_DRV_RS5C313
17 tristate "Ricoh RS5C313"
18 depends on SH_LANDISK
19 --- a/drivers/rtc/Makefile
20 +++ b/drivers/rtc/Makefile
21 @@ -60,6 +60,7 @@ obj-$(CONFIG_RTC_DRV_EFI) += rtc-efi.o
22 obj-$(CONFIG_RTC_DRV_EM3027) += rtc-em3027.o
23 obj-$(CONFIG_RTC_DRV_EP93XX) += rtc-ep93xx.o
24 obj-$(CONFIG_RTC_DRV_FM3130) += rtc-fm3130.o
25 +obj-$(CONFIG_RTC_DRV_GEMINI) += rtc-gemini.o
26 obj-$(CONFIG_RTC_DRV_GENERIC) += rtc-generic.o
27 obj-$(CONFIG_RTC_DRV_HID_SENSOR_TIME) += rtc-hid-sensor-time.o
28 obj-$(CONFIG_RTC_DRV_HYM8563) += rtc-hym8563.o
29 --- a/arch/arm/mach-gemini/common.h
30 +++ b/arch/arm/mach-gemini/common.h
31 @@ -18,9 +18,9 @@ extern void gemini_map_io(void);
32 extern void gemini_init_irq(void);
33 extern void gemini_timer_init(void);
34 extern void gemini_gpio_init(void);
35 -extern void platform_register_rtc(void);
36
37 /* Common platform devices registration functions */
38 +extern int platform_register_rtc(void);
39 extern int platform_register_uart(void);
40 extern int platform_register_pflash(unsigned int size,
41 struct mtd_partition *parts,
42 --- a/arch/arm/mach-gemini/devices.c
43 +++ b/arch/arm/mach-gemini/devices.c
44 @@ -17,6 +17,7 @@
45 #include <mach/irqs.h>
46 #include <mach/hardware.h>
47 #include <mach/global_reg.h>
48 +#include "common.h"
49
50 static struct plat_serial8250_port serial_platform_data[] = {
51 {