kernel: rtc: rs5c372: fix alarm support
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Tue, 24 Nov 2020 15:06:37 +0000 (16:06 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 17:59:10 +0000 (18:59 +0100)
commit8336b0df5d6de83c9f44bef470a37a93b472773a
treeb72dab10a52fc5e9ba6c9c2e55d692a5bd7e7aa6
parent3d12b47985fc1983849925d2dc23430f55210c80
kernel: rtc: rs5c372: fix alarm support

The rs5c372 RTC driver has alarm support, but it can't be enabled and only
can handle 24 hours in the future spite the chip is 1 week capable. Provide
these two patches:
  - Support alarms up to 1 week
  - Let the wakealarm to be used as a wakeup source

This patch makes the alarm wakeup feature to be available in the Buffallo
Linkstation LS421DE (mvebu target) and should also work with any other
device if the hardware has the proper capability.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
target/linux/generic/pending-5.4/190-rtc-rs5c372-support_alarms_up_to_1_week.patch [new file with mode: 0644]
target/linux/generic/pending-5.4/191-rtc-rs5c372-let_the_alarm_to_be_used_as_wakeup_source.patch [new file with mode: 0644]