summaryrefslogtreecommitdiffstats
path: root/drivers/power/reset/mt6323-poweroff.c
diff options
context:
space:
mode:
authorRan Bi <ran.bi@mediatek.com>2020-04-21 05:00:11 +0200
committerLee Jones <lee.jones@linaro.org>2020-05-21 09:55:48 +0200
commit29ee40091e27615530c0ba7773a2879d8266381e (patch)
tree11eff6d8d7fdd25625d892fe23da5c6a4fa38046 /drivers/power/reset/mt6323-poweroff.c
parentmfd: Add support for the MediaTek MT6358 PMIC (diff)
downloadlinux-29ee40091e27615530c0ba7773a2879d8266381e.tar.xz
linux-29ee40091e27615530c0ba7773a2879d8266381e.zip
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>
Diffstat (limited to 'drivers/power/reset/mt6323-poweroff.c')
-rw-r--r--drivers/power/reset/mt6323-poweroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/mt6323-poweroff.c b/drivers/power/reset/mt6323-poweroff.c
index 1caf43d9e46d..0532803e6cbc 100644
--- a/drivers/power/reset/mt6323-poweroff.c
+++ b/drivers/power/reset/mt6323-poweroff.c
@@ -30,7 +30,7 @@ static void mt6323_do_pwroff(void)
int ret;
regmap_write(pwrc->regmap, pwrc->base + RTC_BBPU, RTC_BBPU_KEY);
- regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR, 1);
+ regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR_MT6323, 1);
ret = regmap_read_poll_timeout(pwrc->regmap,
pwrc->base + RTC_BBPU, val,