Lines Matching +full:power +full:- +full:button

2  * DSM-G600 board-setup
7 * based on ixdp425-setup.c:
8 * Copyright (C) 2003-2004 MontaVista Software, Inc.
9 * based on nslu2-power.c:
11 * based on nslu2-io.c:
17 * Maintainers: http://www.nslu2-linux.org/
28 #include <linux/i2c-gpio.h>
30 #include <asm/mach-types.h>
38 /* DSM-G600 Timer Setting */
42 #define DSMG600_PB_GPIO 15 /* power button */
43 #define DSMG600_RB_GPIO 3 /* reset button */
45 /* Power control */
46 #define DSMG600_PO_GPIO 2 /* power off */
62 .name = "IXP4XX-Flash",
75 .name = "i2c-gpio",
90 .name = "dsmg600:green:power",
106 .name = "leds-gpio",
107 .id = -1,
169 /* This is used to make sure the power-button pusher is serious. The button
174 /* Must hold the button down for at least this many counts to be processed */
183 * state of the power button. in dsmg600_power_handler()
188 /* IO Pin is 1 (button pushed) */ in dsmg600_power_handler()
190 power_button_countdown--; in dsmg600_power_handler()
194 /* Done on button release, to allow for auto-power-on mods. */ in dsmg600_power_handler()
202 /* Change the state of the power LED to "blink" */ in dsmg600_power_handler()
214 /* This is the paper-clip reset, it shuts the machine down directly. */ in dsmg600_reset_handler()
222 /* The xtal on this machine is non-standard. */ in dsmg600_timer_init()
242 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in dsmg600_init()
247 /* The UART is required on the DSM-G600 (Redboot cannot use the in dsmg600_init()
248 * NIC) -- do it here so that it does *not* get removed if in dsmg600_init()
259 "DSM-G600 reset button", NULL) < 0) { in dsmg600_init()
261 printk(KERN_DEBUG "Reset Button IRQ %d not available\n", in dsmg600_init()
265 /* The power button on the D-Link DSM-G600 is on GPIO 15, but in dsmg600_init()
270 /* Make sure that the power button GPIO is set up as an input */ in dsmg600_init()
273 /* Set the initial value for the power button IRQ handler */ in dsmg600_init()
279 MACHINE_START(DSMG600, "D-Link DSM-G600 RevA")
280 /* Maintainer: www.nslu2-linux.org */