--- zzzz-none-000/linux-2.4.17/arch/mips/philips/nino/power.c 2001-09-09 17:43:02.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/arch/mips/philips/nino/power.c 2004-11-24 13:22:40.000000000 +0000 @@ -1,5 +1,5 @@ /* - * linux/arch/mips/philips/nino/power.c + * arch/mips/philips/nino/power.c * * Copyright (C) 2000 Jim Pick * Copyright (C) 2001 Steven J. Hill (sjhill@realitydiluted.com) @@ -8,21 +8,24 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * - * Power management routines on the Philips Nino. + * Power management routines for the Philips Nino */ +#include #include void nino_wait(void) { /* We stop the CPU to conserve power */ - PowerControl |= PWR_STOPCPU; + outl(inl(TX3912_POWER_CTRL) | TX3912_POWER_CTRL_STOPCPU, + TX3912_POWER_CTRL); /* * We wait until an interrupt happens... */ /* We resume here */ - PowerControl &= ~PWR_STOPCPU; + outl(inl(TX3912_POWER_CTRL) & ~TX3912_POWER_CTRL_STOPCPU, + TX3912_POWER_CTRL); /* Give ourselves a little delay */ __asm__ __volatile__(