drivers/rtc: DA9058 RTC driver
Subsystems (2)
PATCH v5 4/7 drivers/rtc: DA9058 RTC driver
This patch is relative to linux next-20130417
This is the RTC component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD.
Changes relative to V4 of this patch:
- rebased to latest tagged linux-next - previously relative to mainline
- changed seq_printf to seq_puts where there are no format effectors
--- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-da9058.c | 458 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 469 insertions(+) create mode 100644 drivers/rtc/rtc-da9058.c
drivers/rtc/Kconfig +10 -0
@@ -155,6 +155,16 @@ config RTC_DRV_88PM80X This driver can also be built as a module. If so, the module will be called rtc-88pm80x. +config RTC_DRV_DA9058 + tristate "Dialog DA9058" + depends on MFD_DA9058 + help + If you say yes here you will get support for the + RTC of the Dialog DA9058 PMIC. + + This driver can also be built as a module. If so, the module + will be called rtc-da9058. + config RTC_DRV_DS1307 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025" help
drivers/rtc/Makefile +1 -0
@@ -32,6 +32,7 @@ obj-$(CONFIG_RTC_DRV_COH901331) += rtc-coh901331.o obj-$(CONFIG_RTC_DRV_DA9052) += rtc-da9052.o obj-$(CONFIG_RTC_DRV_DA9055) += rtc-da9055.o obj-$(CONFIG_RTC_DRV_DAVINCI) += rtc-davinci.o +obj-$(CONFIG_RTC_DRV_DA9058) += rtc-da9058.o obj-$(CONFIG_RTC_DRV_DM355EVM) += rtc-dm355evm.o obj-$(CONFIG_RTC_DRV_VRTC) += rtc-mrst.o obj-$(CONFIG_RTC_DRV_DS1216) += rtc-ds1216.o
drivers/rtc/rtc-da9058.c new file +458 -0
458 lines not on this page · raw message
Signature · 1 line
end-of-patch for NEW DRIVER V5
Quoted 5 lines · On Wed, 17 Apr 2013 17:33:35 +0100 Anthony Olech…
This patch is relative to linux next-20130417
This is the RTC component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD.
The driver could use devm_request_threaded_irq() rather than the bare request_threaded_irq().
Otherwise it looks OK to me. Please include this in whatever tree contains the "CORE component driver of the DA9058 MFD" and merge it upstream via that tree.
Please also ask Stephen to include the whole tree into linux-next at the earliest possible time, if it isn't already there.