fix radio_off for interrupts

This commit is contained in:
Mariano Alvira 2010-03-10 15:33:16 -05:00
parent 680a028799
commit ecebd094bf

View file

@ -566,6 +566,7 @@ void vreg_init(void) {
} }
void radio_off(void) { void radio_off(void) {
disable_irq(MACA);
/* turn off the radio regulators */ /* turn off the radio regulators */
reg(0x80003048) = 0x00000f00; reg(0x80003048) = 0x00000f00;
/* hold the maca in reset */ /* hold the maca in reset */
@ -577,6 +578,9 @@ void radio_on(void) {
reg(0x80003048) = 0x00000f78; reg(0x80003048) = 0x00000f78;
/* reinitialize the phy */ /* reinitialize the phy */
init_phy(); init_phy();
enable_irq(MACA);
maca_isr();
} }
/* initialized with 0x4c */ /* initialized with 0x4c */