• Home
  • Raw
  • Download

Lines Matching +full:gpio +full:- +full:f

1 // SPDX-License-Identifier: GPL-2.0
3 * arch/arm/mach-ixp4xx/nas100d-setup.c
5 * NAS 100d board-setup
9 * based on ixdp425-setup.c:
10 * Copyright (C) 2003-2004 MontaVista Software, Inc.
11 * based on nas100d-power.c:
13 * based on nas100d-io.c
18 * Maintainers: http://www.nslu2-linux.org/
21 #include <linux/gpio.h>
31 #include <linux/gpio/machine.h>
33 #include <asm/mach-types.h>
64 .name = "IXP4XX-Flash",
80 .gpio = NAS100D_LED_WLAN_GPIO,
85 .gpio = NAS100D_LED_PWR_GPIO,
90 .gpio = NAS100D_LED_DISK_GPIO,
101 .name = "leds-gpio",
102 .id = -1,
107 .dev_id = "i2c-gpio.0",
117 .name = "i2c-gpio",
167 /* Built-in 10/100 Ethernet MAC interfaces */
205 /* enable the pwr cntl gpio and assert power off */ in nas100d_power_off()
209 /* This is used to make sure the power-button pusher is serious. The button
230 power_button_countdown--; in nas100d_power_handler()
234 /* Done on button release, to allow for auto-power-on mods. */ in nas100d_power_handler()
254 /* This is the paper-clip reset, it shuts the machine down directly. */ in nas100d_reset_handler()
266 * The power button on the Iomega NAS100d is on GPIO 14, but in nas100d_gpio_init()
267 * it cannot handle interrupts on that GPIO line. So we'll in nas100d_gpio_init()
271 /* Request the power off GPIO */ in nas100d_gpio_init()
274 /* Make sure that the power button GPIO is set up as an input */ in nas100d_gpio_init()
289 uint8_t __iomem *f; in nas100d_init() local
296 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in nas100d_init()
325 f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000); in nas100d_init()
326 if (f) { in nas100d_init()
329 nas100d_plat_eth[0].hwaddr[i] = readb(f + 0xFC0FD8 + i); in nas100d_init()
331 nas100d_plat_eth[0].hwaddr[i] = readb(f + 0xFC0FD8 + (i^3)); in nas100d_init()
333 iounmap(f); in nas100d_init()
341 /* Maintainer: www.nslu2-linux.org */