diff options
author | John Crispin <blogic@openwrt.org> | 2015-01-08 20:26:27 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-01-08 20:26:27 +0000 |
commit | 3d5e389698cb5e3e2e9592776bd337bbcc186139 (patch) | |
tree | 74ed5d1b0e13a467055c18ed3ec8277042ae8902 /target/linux/gemini/patches-3.10 | |
parent | b8f3eecf556c27a3344dd096152248d6bffa77f6 (diff) | |
download | upstream-3d5e389698cb5e3e2e9592776bd337bbcc186139.tar.gz upstream-3d5e389698cb5e3e2e9592776bd337bbcc186139.tar.bz2 upstream-3d5e389698cb5e3e2e9592776bd337bbcc186139.zip |
gemini: add rtc-gemini driver
Signed-off-by: Roman Yeryomin <roman@advem.lv>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43884 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches-3.10')
-rw-r--r-- | target/linux/gemini/patches-3.10/002-arm-gemini-fix-platform_register_rtc-prototype.patch | 23 | ||||
-rw-r--r-- | target/linux/gemini/patches-3.10/002-gemini-rtc.patch | 51 |
2 files changed, 51 insertions, 23 deletions
diff --git a/target/linux/gemini/patches-3.10/002-arm-gemini-fix-platform_register_rtc-prototype.patch b/target/linux/gemini/patches-3.10/002-arm-gemini-fix-platform_register_rtc-prototype.patch deleted file mode 100644 index f789f77fd5..0000000000 --- a/target/linux/gemini/patches-3.10/002-arm-gemini-fix-platform_register_rtc-prototype.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- a/arch/arm/mach-gemini/common.h -+++ b/arch/arm/mach-gemini/common.h -@@ -18,9 +18,9 @@ extern void gemini_map_io(void); - extern void gemini_init_irq(void); - extern void gemini_timer_init(void); - extern void gemini_gpio_init(void); --extern void platform_register_rtc(void); - - /* Common platform devices registration functions */ -+extern int platform_register_rtc(void); - extern int platform_register_uart(void); - extern int platform_register_pflash(unsigned int size, - struct mtd_partition *parts, ---- a/arch/arm/mach-gemini/devices.c -+++ b/arch/arm/mach-gemini/devices.c -@@ -17,6 +17,7 @@ - #include <mach/irqs.h> - #include <mach/hardware.h> - #include <mach/global_reg.h> -+#include "common.h" - - static struct plat_serial8250_port serial_platform_data[] = { - { diff --git a/target/linux/gemini/patches-3.10/002-gemini-rtc.patch b/target/linux/gemini/patches-3.10/002-gemini-rtc.patch new file mode 100644 index 0000000000..60ef167771 --- /dev/null +++ b/target/linux/gemini/patches-3.10/002-gemini-rtc.patch @@ -0,0 +1,51 @@ +--- a/drivers/rtc/Kconfig ++++ b/drivers/rtc/Kconfig +@@ -984,6 +984,15 @@ config RTC_DRV_BFIN + This driver can also be built as a module. If so, the module + will be called rtc-bfin. + ++config RTC_DRV_GEMINI ++ tristate "Gemini SoC RTC" ++ help ++ If you say Y here you will get support for the ++ RTC found on Gemini SoC's. ++ ++ This driver can also be built as a module. If so, the module ++ will be called rtc-gemini. ++ + config RTC_DRV_RS5C313 + tristate "Ricoh RS5C313" + depends on SH_LANDISK +--- a/drivers/rtc/Makefile ++++ b/drivers/rtc/Makefile +@@ -51,6 +51,7 @@ obj-$(CONFIG_RTC_DRV_DS3234) += rtc-ds3234.o + obj-$(CONFIG_RTC_DRV_EM3027) += rtc-em3027.o + obj-$(CONFIG_RTC_DRV_EP93XX) += rtc-ep93xx.o + obj-$(CONFIG_RTC_DRV_FM3130) += rtc-fm3130.o ++obj-$(CONFIG_RTC_DRV_GEMINI) += rtc-gemini.o + obj-$(CONFIG_RTC_DRV_GENERIC) += rtc-generic.o + obj-$(CONFIG_RTC_DRV_IMXDI) += rtc-imxdi.o + obj-$(CONFIG_RTC_DRV_ISL1208) += rtc-isl1208.o +--- a/arch/arm/mach-gemini/common.h ++++ b/arch/arm/mach-gemini/common.h +@@ -18,9 +18,9 @@ extern void gemini_map_io(void); + extern void gemini_init_irq(void); + extern void gemini_timer_init(void); + extern void gemini_gpio_init(void); +-extern void platform_register_rtc(void); + + /* Common platform devices registration functions */ ++extern int platform_register_rtc(void); + extern int platform_register_uart(void); + extern int platform_register_pflash(unsigned int size, + struct mtd_partition *parts, +--- a/arch/arm/mach-gemini/devices.c ++++ b/arch/arm/mach-gemini/devices.c +@@ -17,6 +17,7 @@ + #include <mach/irqs.h> + #include <mach/hardware.h> + #include <mach/global_reg.h> ++#include "common.h" + + static struct plat_serial8250_port serial_platform_data[] = { + { |