002-gemini-rtc.patch 1.7 KB

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