• Home
  • Raw
  • Download

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>
41 /* DSM-G600 Timer Setting */
45 #define DSMG600_PB_GPIO 15 /* power button */
46 #define DSMG600_RB_GPIO 3 /* reset button */
65 .name = "IXP4XX-Flash",
73 .dev_id = "i2c-gpio.0",
83 .name = "i2c-gpio",
114 .name = "leds-gpio",
115 .id = -1,
174 /* This is used to make sure the power-button pusher is serious. The button
179 /* Must hold the button down for at least this many counts to be processed */
188 * state of the power button. in dsmg600_power_handler()
193 /* IO Pin is 1 (button pushed) */ in dsmg600_power_handler()
195 power_button_countdown--; in dsmg600_power_handler()
199 /* Done on button release, to allow for auto-power-on mods. */ in dsmg600_power_handler()
219 /* This is the paper-clip reset, it shuts the machine down directly. */ in dsmg600_reset_handler()
227 /* The xtal on this machine is non-standard. */ in dsmg600_timer_init()
239 gpio_request(DSMG600_RB_GPIO, "reset button"); in dsmg600_gpio_init()
241 IRQF_TRIGGER_LOW, "DSM-G600 reset button", NULL) < 0) { in dsmg600_gpio_init()
243 printk(KERN_DEBUG "Reset Button IRQ %d not available\n", in dsmg600_gpio_init()
248 * The power button on the D-Link DSM-G600 is on GPIO 15, but in dsmg600_gpio_init()
253 /* Make sure that the power button GPIO is set up as an input */ in dsmg600_gpio_init()
254 gpio_request(DSMG600_PB_GPIO, "power button"); in dsmg600_gpio_init()
257 gpio_request(DSMG600_PO_GPIO, "power off button"); in dsmg600_gpio_init()
259 /* Set the initial value for the power button IRQ handler */ in dsmg600_gpio_init()
276 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in dsmg600_init()
282 /* The UART is required on the DSM-G600 (Redboot cannot use the in dsmg600_init()
283 * NIC) -- do it here so that it does *not* get removed if in dsmg600_init()
293 MACHINE_START(DSMG600, "D-Link DSM-G600 RevA")
294 /* Maintainer: www.nslu2-linux.org */