root/trunk/patches/2.6.22/16-dsmg600-auto-power-on.patch
| Revision 870, 1.1 KB (checked in by rwhitby, 3 years ago) |
|---|
-
arch/arm/mach-ixp4xx/dsmg600-power.c
--- arch/arm/mach-ixp4xx/dsmg600-power.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
old new 50 50 if (*IXP4XX_GPIO_GPINR & DSMG600_PB_BM) { 51 51 52 52 /* IO Pin is 1 (button pushed) */ 53 if (power_button_countdown > 0) { 54 power_button_countdown--; 55 } 56 57 } else { 58 59 /* Done on button release, to allow for auto-power-on mods. */ 53 60 if (power_button_countdown == 0) { 54 61 /* Signal init to do the ctrlaltdel action, this will bypass 55 62 * init if it hasn't started and do a kernel_restart. … … 58 65 59 66 /* Change the state of the power LED to "blink" */ 60 67 gpio_line_set(DSMG600_LED_PWR_GPIO, IXP4XX_GPIO_LOW); 68 } else { 69 power_button_countdown = PBUTTON_HOLDDOWN_COUNT; 61 70 } 62 power_button_countdown--;63 64 } else {65 power_button_countdown = PBUTTON_HOLDDOWN_COUNT;66 71 } 67 72 68 73 mod_timer(&dsmg600_power_timer, jiffies + msecs_to_jiffies(500));
Note: See TracBrowser
for help on using the browser.
