[PATCH] w1: Adds a sysfs entry (w1_master_search) that allows you to disable/enable...
[linux-2.6/verdex.git] / include / asm-arm / arch-ixp4xx / gtwx5715.h
blobfc460af70627a72fb54106d4a30e3556d1cd3e63
1 /*
2 * include/asm-arm/arch-ixp4xx/gtwx5715.h
4 * Gemtek GTWX5715 Gateway (Linksys WRV54G)
6 * Copyright 2004 (c) George T. Joseph
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 #ifndef __ASM_ARCH_HARDWARE_H__
24 #error "Do not include this directly, instead #include <asm/hardware.h>"
25 #endif
26 #include "irqs.h"
28 #define GTWX5715_GPIO0 0
29 #define GTWX5715_GPIO1 1
30 #define GTWX5715_GPIO2 2
31 #define GTWX5715_GPIO3 3
32 #define GTWX5715_GPIO4 4
33 #define GTWX5715_GPIO5 5
34 #define GTWX5715_GPIO6 6
35 #define GTWX5715_GPIO7 7
36 #define GTWX5715_GPIO8 8
37 #define GTWX5715_GPIO9 9
38 #define GTWX5715_GPIO10 10
39 #define GTWX5715_GPIO11 11
40 #define GTWX5715_GPIO12 12
41 #define GTWX5715_GPIO13 13
42 #define GTWX5715_GPIO14 14
44 #define GTWX5715_GPIO0_IRQ IRQ_IXP4XX_GPIO0
45 #define GTWX5715_GPIO1_IRQ IRQ_IXP4XX_GPIO1
46 #define GTWX5715_GPIO2_IRQ IRQ_IXP4XX_GPIO2
47 #define GTWX5715_GPIO3_IRQ IRQ_IXP4XX_GPIO3
48 #define GTWX5715_GPIO4_IRQ IRQ_IXP4XX_GPIO4
49 #define GTWX5715_GPIO5_IRQ IRQ_IXP4XX_GPIO5
50 #define GTWX5715_GPIO6_IRQ IRQ_IXP4XX_GPIO6
51 #define GTWX5715_GPIO7_IRQ IRQ_IXP4XX_GPIO7
52 #define GTWX5715_GPIO8_IRQ IRQ_IXP4XX_GPIO8
53 #define GTWX5715_GPIO9_IRQ IRQ_IXP4XX_GPIO9
54 #define GTWX5715_GPIO10_IRQ IRQ_IXP4XX_GPIO10
55 #define GTWX5715_GPIO11_IRQ IRQ_IXP4XX_GPIO11
56 #define GTWX5715_GPIO12_IRQ IRQ_IXP4XX_GPIO12
57 #define GTWX5715_GPIO13_IRQ IRQ_IXP4XX_SW_INT1
58 #define GTWX5715_GPIO14_IRQ IRQ_IXP4XX_SW_INT2
61 #define GTWX5715_FLASH_BASE IXP4XX_EXP_BUS_CS0_BASE_PHYS
62 #define GTWX5715_FLASH_SIZE (0x00800000)
64 /* PCI controller GPIO to IRQ pin mappings
66 INTA INTB
67 SLOT 0 10 11
68 SLOT 1 11 10
72 #define GTWX5715_PCI_SLOT0_DEVID 0
73 #define GTWX5715_PCI_SLOT0_INTA_GPIO GTWX5715_GPIO10
74 #define GTWX5715_PCI_SLOT0_INTB_GPIO GTWX5715_GPIO11
75 #define GTWX5715_PCI_SLOT0_INTA_IRQ GTWX5715_GPIO10_IRQ
76 #define GTWX5715_PCI_SLOT0_INTB_IRQ GTWX5715_GPIO11_IRQ
78 #define GTWX5715_PCI_SLOT1_DEVID 1
79 #define GTWX5715_PCI_SLOT1_INTA_GPIO GTWX5715_GPIO11
80 #define GTWX5715_PCI_SLOT1_INTB_GPIO GTWX5715_GPIO10
81 #define GTWX5715_PCI_SLOT1_INTA_IRQ GTWX5715_GPIO11_IRQ
82 #define GTWX5715_PCI_SLOT1_INTB_IRQ GTWX5715_GPIO10_IRQ
84 #define GTWX5715_PCI_SLOT_COUNT 2
85 #define GTWX5715_PCI_INT_PIN_COUNT 2
88 * GPIO 5,6,7 and12 are hard wired to the Kendin KS8995M Switch
89 * and operate as an SPI type interface. The details of the interface
90 * are available on Kendin/Micrel's web site.
93 #define GTWX5715_KSSPI_SELECT GTWX5715_GPIO5
94 #define GTWX5715_KSSPI_TXD GTWX5715_GPIO6
95 #define GTWX5715_KSSPI_CLOCK GTWX5715_GPIO7
96 #define GTWX5715_KSSPI_RXD GTWX5715_GPIO12
99 * The "reset" button is wired to GPIO 3.
100 * The GPIO is brought "low" when the button is pushed.
103 #define GTWX5715_BUTTON_GPIO GTWX5715_GPIO3
104 #define GTWX5715_BUTTON_IRQ GTWX5715_GPIO3_IRQ
107 * Board Label Front Label
108 * LED1 Power
109 * LED2 Wireless-G
110 * LED3 not populated but could be
111 * LED4 Internet
112 * LED5 - LED8 Controlled by KS8995M Switch
113 * LED9 DMZ
116 #define GTWX5715_LED1_GPIO GTWX5715_GPIO2
117 #define GTWX5715_LED2_GPIO GTWX5715_GPIO9
118 #define GTWX5715_LED3_GPIO GTWX5715_GPIO8
119 #define GTWX5715_LED4_GPIO GTWX5715_GPIO1
120 #define GTWX5715_LED9_GPIO GTWX5715_GPIO4