rtc: s5m: add support for S2MPS14 RTC
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 10 Jun 2014 22:18:46 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Jun 2014 22:34:47 +0000 (15:34 -0700)
Add support for S2MPS14 to the rtc-s5m driver.  Differences in S2MPS14
(in comparison to S5M8767):

 - Layout of registers
 - Lack of century support for time and alarms (7 registers used for
   storing time/alarm)
 - Two buffer control registers: WUDR and RUDR
 - No register for enabling writing time
 - RTC interrupts are reported in main PMIC I2C device

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sangbeom Kim <sbkim73@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/Kconfig
drivers/rtc/rtc-s5m.c

index 71988b6..0754f5c 100644 (file)
@@ -530,11 +530,11 @@ config RTC_DRV_RV3029C2
          will be called rtc-rv3029c2.
 
 config RTC_DRV_S5M
-       tristate "Samsung S5M series"
+       tristate "Samsung S2M/S5M series"
        depends on MFD_SEC_CORE
        help
          If you say yes here you will get support for the
-         RTC of Samsung S5M PMIC series.
+         RTC of Samsung S2MPS14 and S5M PMIC series.
 
          This driver can also be built as a module. If so, the module
          will be called rtc-s5m.
Simple merge