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:
parent
5b8d7ddc4d
commit
74ec6378c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue