/* Apart form GPIOs, only the RTC alarm can be a wakeup event.  */
static int sa1100_set_wake(unsigned int irq, unsigned int on)
/* Apart form GPIOs, only the RTC alarm can be a wakeup event.  */
static int sa1100_set_wake(unsigned int irq, unsigned int on)
{
	if (irq == IRQ_RTCAlrm) {
		if (on)
			PWER |= PWER_RTC;
		else
			PWER &= ~PWER_RTC;
		return 0;
	}
	return -EINVAL;
}