rtc: brcmstb-waketimer: allow use as non-wake alarm
authorDoug Berger <opendmb@gmail.com>
Tue, 24 Jan 2023 20:14:30 +0000 (12:14 -0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 25 Jan 2023 17:54:56 +0000 (18:54 +0100)
commit24304a87158aab01b4ccb9b2638c2c623a9a7bd4
treef9e7c361739ff4388ef6c0d2a0f764c920ab8ebd
parent6cc7a8262b57db0a2ff6c141bb163c1395b7c4ef
rtc: brcmstb-waketimer: allow use as non-wake alarm

The wake interrupt only fires when the system is in a suspend
state. Fortunately we have another interrupt that fires in a
non-suspend state at the L2 controller UPG_AUX_AON. Add support
for this interrupt line so we can use the alarm in a non-wake
context.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230124201430.2502371-3-opendmb@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-brcmstb-waketimer.c