blob: 7ef8472f1d8d3c9423f011b23d5002c73502165c [file] [log] [blame]
Martha Marx16bee7b2008-05-29 15:37:21 -04001/*
2 * (C) Copyright 2008
3 * Martha J Marx, Silicon Turnkey Express, mmarx@silicontkx.com
4 * mpc512x I/O pin/pad initialization for the ADS5121 board
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
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.
17 *
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,
21 * MA 02111-1307 USA
22 */
23
24#define IOCTL_MEM 0x000
25#define IOCTL_GP 0x004
26#define IOCTL_LPC_CLK 0x008
27#define IOCTL_LPC_OE 0x00C
28#define IOCTL_LPC_RWB 0x010
29#define IOCTL_LPC_ACK 0x014
30#define IOCTL_LPC_CS0 0x018
31#define IOCTL_NFC_CE0 0x01C
32#define IOCTL_LPC_CS1 0x020
33#define IOCTL_LPC_CS2 0x024
34#define IOCTL_LPC_AX03 0x028
35#define IOCTL_EMB_AX02 0x02C
36#define IOCTL_EMB_AX01 0x030
37#define IOCTL_EMB_AX00 0x034
38#define IOCTL_EMB_AD31 0x038
39#define IOCTL_EMB_AD30 0x03C
40#define IOCTL_EMB_AD29 0x040
41#define IOCTL_EMB_AD28 0x044
42#define IOCTL_EMB_AD27 0x048
43#define IOCTL_EMB_AD26 0x04C
44#define IOCTL_EMB_AD25 0x050
45#define IOCTL_EMB_AD24 0x054
46#define IOCTL_EMB_AD23 0x058
47#define IOCTL_EMB_AD22 0x05C
48#define IOCTL_EMB_AD21 0x060
49#define IOCTL_EMB_AD20 0x064
50#define IOCTL_EMB_AD19 0x068
51#define IOCTL_EMB_AD18 0x06C
52#define IOCTL_EMB_AD17 0x070
53#define IOCTL_EMB_AD16 0x074
54#define IOCTL_EMB_AD15 0x078
55#define IOCTL_EMB_AD14 0x07C
56#define IOCTL_EMB_AD13 0x080
57#define IOCTL_EMB_AD12 0x084
58#define IOCTL_EMB_AD11 0x088
59#define IOCTL_EMB_AD10 0x08C
60#define IOCTL_EMB_AD09 0x090
61#define IOCTL_EMB_AD08 0x094
62#define IOCTL_EMB_AD07 0x098
63#define IOCTL_EMB_AD06 0x09C
64#define IOCTL_EMB_AD05 0x0A0
65#define IOCTL_EMB_AD04 0x0A4
66#define IOCTL_EMB_AD03 0x0A8
67#define IOCTL_EMB_AD02 0x0AC
68#define IOCTL_EMB_AD01 0x0B0
69#define IOCTL_EMB_AD00 0x0B4
70#define IOCTL_PATA_CE1 0x0B8
71#define IOCTL_PATA_CE2 0x0BC
72#define IOCTL_PATA_ISOLATE 0x0C0
73#define IOCTL_PATA_IOR 0x0C4
74#define IOCTL_PATA_IOW 0x0C8
75#define IOCTL_PATA_IOCHRDY 0x0CC
76#define IOCTL_PATA_INTRQ 0x0D0
77#define IOCTL_PATA_DRQ 0x0D4
78#define IOCTL_PATA_DACK 0x0D8
79#define IOCTL_NFC_WP 0x0DC
80#define IOCTL_NFC_RB 0x0E0
81#define IOCTL_NFC_ALE 0x0E4
82#define IOCTL_NFC_CLE 0x0E8
83#define IOCTL_NFC_WE 0x0EC
84#define IOCTL_NFC_RE 0x0F0
85#define IOCTL_PCI_AD31 0x0F4
86#define IOCTL_PCI_AD30 0x0F8
87#define IOCTL_PCI_AD29 0x0FC
88#define IOCTL_PCI_AD28 0x100
89#define IOCTL_PCI_AD27 0x104
90#define IOCTL_PCI_AD26 0x108
91#define IOCTL_PCI_AD25 0x10C
92#define IOCTL_PCI_AD24 0x110
93#define IOCTL_PCI_AD23 0x114
94#define IOCTL_PCI_AD22 0x118
95#define IOCTL_PCI_AD21 0x11C
96#define IOCTL_PCI_AD20 0x120
97#define IOCTL_PCI_AD19 0x124
98#define IOCTL_PCI_AD18 0x128
99#define IOCTL_PCI_AD17 0x12C
100#define IOCTL_PCI_AD16 0x130
101#define IOCTL_PCI_AD15 0x134
102#define IOCTL_PCI_AD14 0x138
103#define IOCTL_PCI_AD13 0x13C
104#define IOCTL_PCI_AD12 0x140
105#define IOCTL_PCI_AD11 0x144
106#define IOCTL_PCI_AD10 0x148
107#define IOCTL_PCI_AD09 0x14C
108#define IOCTL_PCI_AD08 0x150
109#define IOCTL_PCI_AD07 0x154
110#define IOCTL_PCI_AD06 0x158
111#define IOCTL_PCI_AD05 0x15C
112#define IOCTL_PCI_AD04 0x160
113#define IOCTL_PCI_AD03 0x164
114#define IOCTL_PCI_AD02 0x168
115#define IOCTL_PCI_AD01 0x16C
116#define IOCTL_PCI_AD00 0x170
117#define IOCTL_PCI_CBE0 0x174
118#define IOCTL_PCI_CBE1 0x178
119#define IOCTL_PCI_CBE2 0x17C
120#define IOCTL_PCI_CBE3 0x180
121#define IOCTL_PCI_GNT2 0x184
122#define IOCTL_PCI_REQ2 0x188
123#define IOCTL_PCI_GNT1 0x18C
124#define IOCTL_PCI_REQ1 0x190
125#define IOCTL_PCI_GNT0 0x194
126#define IOCTL_PCI_REQ0 0x198
127#define IOCTL_PCI_INTA 0x19C
128#define IOCTL_PCI_CLK 0x1A0
129#define IOCTL_PCI_RST_OUT 0x1A4
130#define IOCTL_PCI_FRAME 0x1A8
131#define IOCTL_PCI_IDSEL 0x1AC
132#define IOCTL_PCI_DEVSEL 0x1B0
133#define IOCTL_PCI_IRDY 0x1B4
134#define IOCTL_PCI_TRDY 0x1B8
135#define IOCTL_PCI_STOP 0x1BC
136#define IOCTL_PCI_PAR 0x1C0
137#define IOCTL_PCI_PERR 0x1C4
138#define IOCTL_PCI_SERR 0x1C8
139#define IOCTL_SPDIF_TXCLK 0x1CC
140#define IOCTL_SPDIF_TX 0x1D0
141#define IOCTL_SPDIF_RX 0x1D4
142#define IOCTL_I2C0_SCL 0x1D8
143#define IOCTL_I2C0_SDA 0x1DC
144#define IOCTL_I2C1_SCL 0x1E0
145#define IOCTL_I2C1_SDA 0x1E4
146#define IOCTL_I2C2_SCL 0x1E8
147#define IOCTL_I2C2_SDA 0x1EC
148#define IOCTL_IRQ0 0x1F0
149#define IOCTL_IRQ1 0x1F4
150#define IOCTL_CAN1_TX 0x1F8
151#define IOCTL_CAN2_TX 0x1FC
152#define IOCTL_J1850_TX 0x200
153#define IOCTL_J1850_RX 0x204
154#define IOCTL_PSC_MCLK_IN 0x208
155#define IOCTL_PSC0_0 0x20C
156#define IOCTL_PSC0_1 0x210
157#define IOCTL_PSC0_2 0x214
158#define IOCTL_PSC0_3 0x218
159#define IOCTL_PSC0_4 0x21C
160#define IOCTL_PSC1_0 0x220
161#define IOCTL_PSC1_1 0x224
162#define IOCTL_PSC1_2 0x228
163#define IOCTL_PSC1_3 0x22C
164#define IOCTL_PSC1_4 0x230
165#define IOCTL_PSC2_0 0x234
166#define IOCTL_PSC2_1 0x238
167#define IOCTL_PSC2_2 0x23C
168#define IOCTL_PSC2_3 0x240
169#define IOCTL_PSC2_4 0x244
170#define IOCTL_PSC3_0 0x248
171#define IOCTL_PSC3_1 0x24C
172#define IOCTL_PSC3_2 0x250
173#define IOCTL_PSC3_3 0x254
174#define IOCTL_PSC3_4 0x258
175#define IOCTL_PSC4_0 0x25C
176#define IOCTL_PSC4_1 0x260
177#define IOCTL_PSC4_2 0x264
178#define IOCTL_PSC4_3 0x268
179#define IOCTL_PSC4_4 0x26C
180#define IOCTL_PSC5_0 0x270
181#define IOCTL_PSC5_1 0x274
182#define IOCTL_PSC5_2 0x278
183#define IOCTL_PSC5_3 0x27C
184#define IOCTL_PSC5_4 0x280
185#define IOCTL_PSC6_0 0x284
186#define IOCTL_PSC6_1 0x288
187#define IOCTL_PSC6_2 0x28C
188#define IOCTL_PSC6_3 0x290
189#define IOCTL_PSC6_4 0x294
190#define IOCTL_PSC7_0 0x298
191#define IOCTL_PSC7_1 0x29C
192#define IOCTL_PSC7_2 0x2A0
193#define IOCTL_PSC7_3 0x2A4
194#define IOCTL_PSC7_4 0x2A8
195#define IOCTL_PSC8_0 0x2AC
196#define IOCTL_PSC8_1 0x2B0
197#define IOCTL_PSC8_2 0x2B4
198#define IOCTL_PSC8_3 0x2B8
199#define IOCTL_PSC8_4 0x2BC
200#define IOCTL_PSC9_0 0x2C0
201#define IOCTL_PSC9_1 0x2C4
202#define IOCTL_PSC9_2 0x2C8
203#define IOCTL_PSC9_3 0x2CC
204#define IOCTL_PSC9_4 0x2D0
205#define IOCTL_PSC10_0 0x2D4
206#define IOCTL_PSC10_1 0x2D8
207#define IOCTL_PSC10_2 0x2DC
208#define IOCTL_PSC10_3 0x2E0
209#define IOCTL_PSC10_4 0x2E4
210#define IOCTL_PSC11_0 0x2E8
211#define IOCTL_PSC11_1 0x2EC
212#define IOCTL_PSC11_2 0x2F0
213#define IOCTL_PSC11_3 0x2F4
214#define IOCTL_PSC11_4 0x2F8
215#define IOCTL_HRESET 0x2FC
216#define IOCTL_SRESET 0x300
217#define IOCTL_CKSTP_OUT 0x304
218#define IOCTL_USB2_VBUS_PWR_FAULT 0x308
219#define IOCTL_USB2_VBUS_PWR_SELECT 0x30C
220#define IOCTL_USB2_PHY_DRVV_BUS 0x310
221
222extern void iopin_initialize(void);