rtc: mt6397: Add support for the MediaTek MT6358 RTC
authorRan Bi <ran.bi@mediatek.com>
Tue, 21 Apr 2020 03:00:11 +0000 (11:00 +0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 21 May 2020 07:55:48 +0000 (08:55 +0100)
commit29ee40091e27615530c0ba7773a2879d8266381e
tree11eff6d8d7fdd25625d892fe23da5c6a4fa38046
parent2b91c28f2abd9471aac4aa6cd8de7896ef469153
rtc: mt6397: Add support for the MediaTek MT6358 RTC

This add support for the MediaTek MT6358 RTC. Driver using
compatible data to store different RTC_WRTGR address offset.
This replace RTC_WRTGR to RTC_WRTGR_MT6323 in mt6323-poweroff
driver which only needed by armv7 CPU without ATF.

Signed-off-by: Ran Bi <ran.bi@mediatek.com>
Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Sebastian Reichel <sre@kernel.org>
Reviewed-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/reset/mt6323-poweroff.c
drivers/rtc/rtc-mt6397.c
include/linux/mfd/mt6397/rtc.h