RTC:driver for Cortina's SOC
PATCH v5 1/1 RTC:driver for Cortina's SOC
this is the fifth round of including the RTC driver for Gemini SoC.
changes from v1
v2:
- usage of readl/write
- spaces around *
- line wrapping at open parenthesis.
- add MAINTANERS for driver
v3:
- spaces around * (again)
- line wrapping at open parenthesis (again)
- add depends on ARCH_GEMINI found by Paul
v4:
- COMPILE_TEST requested by Arnd
- some typos found by Joe
- add HAS_IOMEM found by Geert
v5:
- remove unneeded #include found by Arnd
Ulli
From: Hans Ulli Kroll <[email protected]>
Subject: [PATCHv5] RTC:driver for Cortina's SOC
In-Reply-To:
PATCH 1/1 RTC:driver for Cortina's SOC
Driver for the on chip RTC found on Cortina's SoC Gemini.
--- MAINTAINERS | 3 +- drivers/rtc/Kconfig | 11 +++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-gemini.c | 190 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 drivers/rtc/rtc-gemini.c
MAINTAINERS +2 -1
@@ -975,9 +975,10 @@ S: Maintained ARM/CORTINA SYSTEMS GEMINI ARM ARCHITECTURE M: Hans Ulli Kroll <[email protected]> L: [email protected] (moderated for non-subscribers) -T: git git://git.berlios.de/gemini-board +T: git git://github.com/ulli-kroll/linux.git S: Maintained F: arch/arm/mach-gemini/ +F: drivers/rtc/rtc-gemini.c ARM/CSR SIRFPRIMA2 MACHINE SUPPORT M: Barry Song <[email protected]>
drivers/rtc/Kconfig +11 -0
@@ -1362,6 +1362,17 @@ config RTC_DRV_ARMADA38X This driver can also be built as a module. If so, the module will be called armada38x-rtc. +config RTC_DRV_GEMINI + tristate "Gemini SoC RTC" + depends on ARCH_GEMINI || COMPILE_TEST + depends on HAS_IOMEM + 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_PS3 tristate "PS3 RTC" depends on PPC_PS3
drivers/rtc/Makefile +1 -0
@@ -64,6 +64,7 @@ obj-$(CONFIG_RTC_DRV_EFI) += rtc-efi.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_HID_SENSOR_TIME) += rtc-hid-sensor-time.o obj-$(CONFIG_RTC_DRV_HYM8563) += rtc-hym8563.o
drivers/rtc/rtc-gemini.c new file +190 -0
190 lines not on this page · raw message
Signature · 1 line
2.4.0
Quoted 1 line · Hans Ulli Kroll
Driver for the on chip RTC found on Cortina's SoC Gemini.
Trivia:
drivers/rtc/rtc-gemini.c
Quoted 1 line
drivers/rtc/rtc-gemini.c +0
-0
[]
drivers/rtc/rtc-gemini.c line 126
Quoted 8 lines
drivers/rtc/rtc-gemini.c +8
-0+static int gemini_rtc_probe (struct platform_device *pdev) +{ +struct gemini_rtc *rtc; +struct device *dev = &pdev->dev; +struct resource *res; +int ret; + + rtc =kzalloc (sizeof (*rtc),GFP_KERNEL );
this could/should be devm_kzalloc