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>"
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
60 /* PCI controller GPIO to IRQ pin mappings
68 #define GTWX5715_PCI_SLOT0_DEVID 0
69 #define GTWX5715_PCI_SLOT0_INTA_GPIO GTWX5715_GPIO10
70 #define GTWX5715_PCI_SLOT0_INTB_GPIO GTWX5715_GPIO11
71 #define GTWX5715_PCI_SLOT0_INTA_IRQ GTWX5715_GPIO10_IRQ
72 #define GTWX5715_PCI_SLOT0_INTB_IRQ GTWX5715_GPIO11_IRQ
74 #define GTWX5715_PCI_SLOT1_DEVID 1
75 #define GTWX5715_PCI_SLOT1_INTA_GPIO GTWX5715_GPIO11
76 #define GTWX5715_PCI_SLOT1_INTB_GPIO GTWX5715_GPIO10
77 #define GTWX5715_PCI_SLOT1_INTA_IRQ GTWX5715_GPIO11_IRQ
78 #define GTWX5715_PCI_SLOT1_INTB_IRQ GTWX5715_GPIO10_IRQ
80 #define GTWX5715_PCI_SLOT_COUNT 2
81 #define GTWX5715_PCI_INT_PIN_COUNT 2
84 * GPIO 5,6,7 and12 are hard wired to the Kendin KS8995M Switch
85 * and operate as an SPI type interface. The details of the interface
86 * are available on Kendin/Micrel's web site.
89 #define GTWX5715_KSSPI_SELECT GTWX5715_GPIO5
90 #define GTWX5715_KSSPI_TXD GTWX5715_GPIO6
91 #define GTWX5715_KSSPI_CLOCK GTWX5715_GPIO7
92 #define GTWX5715_KSSPI_RXD GTWX5715_GPIO12
95 * The "reset" button is wired to GPIO 3.
96 * The GPIO is brought "low" when the button is pushed.
99 #define GTWX5715_BUTTON_GPIO GTWX5715_GPIO3
100 #define GTWX5715_BUTTON_IRQ GTWX5715_GPIO3_IRQ
103 * Board Label Front Label
106 * LED3 not populated but could be
108 * LED5 - LED8 Controlled by KS8995M Switch
112 #define GTWX5715_LED1_GPIO GTWX5715_GPIO2
113 #define GTWX5715_LED2_GPIO GTWX5715_GPIO9
114 #define GTWX5715_LED3_GPIO GTWX5715_GPIO8
115 #define GTWX5715_LED4_GPIO GTWX5715_GPIO1
116 #define GTWX5715_LED9_GPIO GTWX5715_GPIO4