Lines Matching +full:gpio +full:- +full:f
1 // SPDX-License-Identifier: GPL-2.0
3 * arch/arm/mach-ixp4xx/nslu2-setup.c
5 * NSLU2 board-setup
9 * based on ixdp425-setup.c:
10 * Copyright (C) 2003-2004 MontaVista Software, Inc.
11 * based on nslu2-power.c:
17 * Maintainers: http://www.nslu2-linux.org/
20 #include <linux/gpio.h>
28 #include <linux/gpio/machine.h>
30 #include <asm/mach-types.h>
67 .name = "IXP4XX-Flash",
75 .dev_id = "i2c-gpio.0",
93 .gpio = NSLU2_LED_GRN_GPIO,
97 .gpio = NSLU2_LED_RED_GPIO,
100 .name = "nslu2:green:disk-1",
101 .gpio = NSLU2_LED_DISK1_GPIO,
105 .name = "nslu2:green:disk-2",
106 .gpio = NSLU2_LED_DISK2_GPIO,
117 .name = "leds-gpio",
118 .id = -1,
123 .name = "i2c-gpio",
138 .name = "ixp4xx-beeper",
187 /* Built-in 10/100 Ethernet MAC interfaces */
226 /* enable the pwr cntl gpio and assert power off */ in nslu2_power_off()
242 /* This is the paper-clip reset, it shuts the machine down directly. in nslu2_reset_handler()
254 /* Request the power off GPIO */ in nslu2_gpio_init()
261 /* The xtal on this machine is non-standard. */ in nslu2_timer_init()
270 uint8_t __iomem *f; in nslu2_init() local
277 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in nslu2_init()
313 f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x40000); in nslu2_init()
314 if (f) { in nslu2_init()
317 nslu2_plat_eth[0].hwaddr[i] = readb(f + 0x3FFB0 + i); in nslu2_init()
319 nslu2_plat_eth[0].hwaddr[i] = readb(f + 0x3FFB0 + (i^3)); in nslu2_init()
321 iounmap(f); in nslu2_init()
329 /* Maintainer: www.nslu2-linux.org */