You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
rtc: s35390a: Correct RTC alarm behavior to maintain 32KHz output
When setting an RTC alarm, the S35390A_CMD_STATUS2 register will be
set again, which unintentionally disables the 32KHz output, this commit
adds the necessary configuration to set the S35390A_INT2_MODE_32K,
ensuring that the 32KHz output remains enabled at all times.
as a result of this change, the previous commit
7f151d9170 is no longer necessary.
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I8607899676bd624e00032eeca1a21a0658f3b71a
This commit is contained in:
@@ -344,7 +344,7 @@ static int s35390a_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
|
||||
return err;
|
||||
|
||||
if (alm->enabled)
|
||||
sts = S35390A_INT2_MODE_ALARM;
|
||||
sts = S35390A_INT2_MODE_ALARM | S35390A_INT2_MODE_32K;
|
||||
else
|
||||
sts = S35390A_INT2_MODE_NOINTR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user