Lines Matching +full:button +full:-

1 // SPDX-License-Identifier: GPL-2.0
3 * DSM-G600 board-setup
8 * based on ixdp425-setup.c:
9 * Copyright (C) 2003-2004 MontaVista Software, Inc.
10 * based on nslu2-power.c:
12 * based on nslu2-io.c:
18 * Maintainers: http://www.nslu2-linux.org/
33 #include <asm/mach-types.h>
43 /* DSM-G600 Timer Setting */
47 #define DSMG600_PB_GPIO 15 /* power button */
48 #define DSMG600_RB_GPIO 3 /* reset button */
67 .name = "IXP4XX-Flash",
75 .dev_id = "i2c-gpio.0",
85 .name = "i2c-gpio",
116 .name = "leds-gpio",
117 .id = -1,
176 /* This is used to make sure the power-button pusher is serious. The button
181 /* Must hold the button down for at least this many counts to be processed */
190 * state of the power button. in dsmg600_power_handler()
195 /* IO Pin is 1 (button pushed) */ in dsmg600_power_handler()
197 power_button_countdown--; in dsmg600_power_handler()
201 /* Done on button release, to allow for auto-power-on mods. */ in dsmg600_power_handler()
221 /* This is the paper-clip reset, it shuts the machine down directly. */ in dsmg600_reset_handler()
229 /* The xtal on this machine is non-standard. */ in dsmg600_timer_init()
241 gpio_request(DSMG600_RB_GPIO, "reset button"); in dsmg600_gpio_init()
243 IRQF_TRIGGER_LOW, "DSM-G600 reset button", NULL) < 0) { in dsmg600_gpio_init()
245 printk(KERN_DEBUG "Reset Button IRQ %d not available\n", in dsmg600_gpio_init()
250 * The power button on the D-Link DSM-G600 is on GPIO 15, but in dsmg600_gpio_init()
255 /* Make sure that the power button GPIO is set up as an input */ in dsmg600_gpio_init()
256 gpio_request(DSMG600_PB_GPIO, "power button"); in dsmg600_gpio_init()
259 gpio_request(DSMG600_PO_GPIO, "power off button"); in dsmg600_gpio_init()
261 /* Set the initial value for the power button IRQ handler */ in dsmg600_gpio_init()
275 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in dsmg600_init()
281 /* The UART is required on the DSM-G600 (Redboot cannot use the in dsmg600_init()
282 * NIC) -- do it here so that it does *not* get removed if in dsmg600_init()
292 MACHINE_START(DSMG600, "D-Link DSM-G600 RevA")
293 /* Maintainer: www.nslu2-linux.org */