rtc: s5m: add support for S2MPS14 RTC
authorKrzysztof Kozlowski <[email protected]>
Tue, 10 Jun 2014 22:18:46 +0000 (15:18 -0700)
committerLinus Torvalds <[email protected]>
Tue, 10 Jun 2014 22:34:47 +0000 (15:34 -0700)
commit0c5deb1ea92fefa6ee69e2da8b887723bdecf3d9
tree1fb14a31b5a4696a2c7ae16fa9c1e2abc5c010b9
parentf8b23bbdad5dfb50af101a56c58ad4e83510a9a6
rtc: s5m: add support for S2MPS14 RTC

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 <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Sangbeom Kim <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/Kconfig
drivers/rtc/rtc-s5m.c