Lines Matching +full:gpio +full:- +full:f
1 // SPDX-License-Identifier: GPL-2.0
3 * arch/arm/mach-ixp4xx/fsg-setup.c
5 * FSG board-setup
9 * based on ixdp425-setup.c:
10 * Copyright (C) 2003-2004 MontaVista Software, Inc.
11 * based on nslu2-power.c
15 * Maintainers: http://www.nslu2-linux.org/
18 #include <linux/gpio.h>
26 #include <linux/gpio/machine.h>
28 #include <asm/mach-types.h>
51 .name = "IXP4XX-Flash",
61 .dev_id = "i2c-gpio.0",
71 .name = "i2c-gpio",
130 .name = "fsg-led",
131 .id = -1,
134 /* Built-in 10/100 Ethernet MAC interfaces */
203 /* This is the paper-clip reset which does an emergency reboot. */ in fsg_reset_handler()
213 uint8_t __iomem *f; in fsg_init() local
219 IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; in fsg_init()
258 f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x400000); in fsg_init()
259 if (f) { in fsg_init()
263 fsg_plat_eth[0].hwaddr[i] = readb(f + 0x3C0422 + i); in fsg_init()
264 fsg_plat_eth[1].hwaddr[i] = readb(f + 0x3C043B + i); in fsg_init()
269 Endian-swapped reads from unaligned addresses are in fsg_init()
270 required to extract the two MACs from the big-endian in fsg_init()
274 fsg_plat_eth[0].hwaddr[0] = readb(f + 0x3C0421); in fsg_init()
275 fsg_plat_eth[0].hwaddr[1] = readb(f + 0x3C0420); in fsg_init()
276 fsg_plat_eth[0].hwaddr[2] = readb(f + 0x3C0427); in fsg_init()
277 fsg_plat_eth[0].hwaddr[3] = readb(f + 0x3C0426); in fsg_init()
278 fsg_plat_eth[0].hwaddr[4] = readb(f + 0x3C0425); in fsg_init()
279 fsg_plat_eth[0].hwaddr[5] = readb(f + 0x3C0424); in fsg_init()
281 fsg_plat_eth[1].hwaddr[0] = readb(f + 0x3C0439); in fsg_init()
282 fsg_plat_eth[1].hwaddr[1] = readb(f + 0x3C043F); in fsg_init()
283 fsg_plat_eth[1].hwaddr[2] = readb(f + 0x3C043E); in fsg_init()
284 fsg_plat_eth[1].hwaddr[3] = readb(f + 0x3C043D); in fsg_init()
285 fsg_plat_eth[1].hwaddr[4] = readb(f + 0x3C043C); in fsg_init()
286 fsg_plat_eth[1].hwaddr[5] = readb(f + 0x3C0443); in fsg_init()
288 iounmap(f); in fsg_init()
297 MACHINE_START(FSG, "Freecom FSG-3")
298 /* Maintainer: www.nslu2-linux.org */