15 #include <asm/irqflags.h>
18 #define SUPPLE_0_WAKEUP ((IRQ_SUPPLE_0 - (IRQ_CORETMR + 1)) % 32)
19 #define SUPPLE_1_WAKEUP ((IRQ_SUPPLE_1 - (IRQ_CORETMR + 1)) % 32)
22 bfin_iwr_restore(
unsigned long iwr0,
unsigned long iwr1,
unsigned long iwr2)
24 unsigned long SICA_SICB_OFF = ((
bfin_read_DSPID() & 0xff) ? 0x1000 : 0);
29 #define bfin_iwr_restore bfin_iwr_restore
32 bfin_iwr_save(
unsigned long niwr0,
unsigned long niwr1,
unsigned long niwr2,
33 unsigned long *iwr0,
unsigned long *iwr1,
unsigned long *iwr2)
35 unsigned long SICA_SICB_OFF = ((
bfin_read_DSPID() & 0xff) ? 0x1000 : 0);
39 bfin_iwr_restore(niwr0, niwr1, niwr2);
41 #define bfin_iwr_save bfin_iwr_save
44 bfin_iwr_set_sup0(
unsigned long *iwr0,
unsigned long *iwr1,
unsigned long *iwr2)
47 IWR_ENABLE(SUPPLE_1_WAKEUP), 0, iwr0, iwr1, iwr2);