drivers/rtc/rtc-s5m.c: add support for S2MPS13 RTC
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 16 Apr 2015 19:45:45 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:01 +0000 (09:04 -0400)
commit5281f94ae7f54d2d1a48dbc10223fd12d2aea716
tree05e530ad0d0f25c3546e3fd305b92be6687dbec0
parent7c6f84f8df02a17ad3da5e38abc8b8abff122d39
drivers/rtc/rtc-s5m.c: add support for S2MPS13 RTC

The S2MPS13 RTC is almost the same as S2MPS14. The differences when
updating alarm are:
1. Set WUDR+AUDR field instead of WUDR+RUDR.
2. Clear the AUDR field later (it is not auto-cleared).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s5m.c
include/linux/mfd/samsung/rtc.h