Lines Matching +full:power +full:- +full:button
2 * arch/arm/mach-ixp4xx/nas100d-setup.c
4 * NAS 100d board-setup
8 * based on ixdp425-setup.c:
9 * Copyright (C) 2003-2004 MontaVista Software, Inc.
10 * based on nas100d-power.c:
12 * based on nas100d-io.c
17 * Maintainers: http://www.nslu2-linux.org/
30 #include <linux/i2c-gpio.h>
32 #include <asm/mach-types.h>
40 #define NAS100D_PB_GPIO 14 /* power button */
41 #define NAS100D_RB_GPIO 4 /* reset button */
43 /* Power control */
44 #define NAS100D_PO_GPIO 12 /* power off */
61 .name = "IXP4XX-Flash",
81 .name = "nas100d:blue:power", /* (off=flashing) */
98 .name = "leds-gpio",
99 .id = -1,
109 .name = "i2c-gpio",
159 /* Built-in 10/100 Ethernet MAC interfaces */
185 /* This causes the box to drop the power and go dead. */ in nas100d_power_off()
194 /* This is used to make sure the power-button pusher is serious. The button
199 /* Must hold the button down for at least this many counts to be processed */
208 * state of the power button. in nas100d_power_handler()
213 /* IO Pin is 1 (button pushed) */ in nas100d_power_handler()
215 power_button_countdown--; in nas100d_power_handler()
219 /* Done on button release, to allow for auto-power-on mods. */ in nas100d_power_handler()
227 /* Change the state of the power LED to "blink" */ in nas100d_power_handler()
239 /* This is the paper-clip reset, it shuts the machine down directly. */ in nas100d_reset_handler()
257 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in nas100d_init()
275 "NAS100D reset button", NULL) < 0) { in nas100d_init()
277 printk(KERN_DEBUG "Reset Button IRQ %d not available\n", in nas100d_init()
281 /* The power button on the Iomega NAS100d is on GPIO 14, but in nas100d_init()
286 /* Make sure that the power button GPIO is set up as an input */ in nas100d_init()
289 /* Set the initial value for the power button IRQ handler */ in nas100d_init()
315 /* Maintainer: www.nslu2-linux.org */