Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[pandora-kernel.git] / arch / blackfin / mach-bf548 / include / mach / gpio.h
1 /*
2  * Copyright 2007-2009 Analog Devices Inc.
3  * Licensed under the GPL-2 or later.
4  */
5
6 #define GPIO_PA0        0
7 #define GPIO_PA1        1
8 #define GPIO_PA2        2
9 #define GPIO_PA3        3
10 #define GPIO_PA4        4
11 #define GPIO_PA5        5
12 #define GPIO_PA6        6
13 #define GPIO_PA7        7
14 #define GPIO_PA8        8
15 #define GPIO_PA9        9
16 #define GPIO_PA10       10
17 #define GPIO_PA11       11
18 #define GPIO_PA12       12
19 #define GPIO_PA13       13
20 #define GPIO_PA14       14
21 #define GPIO_PA15       15
22 #define GPIO_PB0        16
23 #define GPIO_PB1        17
24 #define GPIO_PB2        18
25 #define GPIO_PB3        19
26 #define GPIO_PB4        20
27 #define GPIO_PB5        21
28 #define GPIO_PB6        22
29 #define GPIO_PB7        23
30 #define GPIO_PB8        24
31 #define GPIO_PB9        25
32 #define GPIO_PB10       26
33 #define GPIO_PB11       27
34 #define GPIO_PB12       28
35 #define GPIO_PB13       29
36 #define GPIO_PB14       30
37 #define GPIO_PB15       31      /* N/A */
38 #define GPIO_PC0        32
39 #define GPIO_PC1        33
40 #define GPIO_PC2        34
41 #define GPIO_PC3        35
42 #define GPIO_PC4        36
43 #define GPIO_PC5        37
44 #define GPIO_PC6        38
45 #define GPIO_PC7        39
46 #define GPIO_PC8        40
47 #define GPIO_PC9        41
48 #define GPIO_PC10       42
49 #define GPIO_PC11       43
50 #define GPIO_PC12       44
51 #define GPIO_PC13       45
52 #define GPIO_PC14       46      /* N/A */
53 #define GPIO_PC15       47      /* N/A */
54 #define GPIO_PD0        48
55 #define GPIO_PD1        49
56 #define GPIO_PD2        50
57 #define GPIO_PD3        51
58 #define GPIO_PD4        52
59 #define GPIO_PD5        53
60 #define GPIO_PD6        54
61 #define GPIO_PD7        55
62 #define GPIO_PD8        56
63 #define GPIO_PD9        57
64 #define GPIO_PD10       58
65 #define GPIO_PD11       59
66 #define GPIO_PD12       60
67 #define GPIO_PD13       61
68 #define GPIO_PD14       62
69 #define GPIO_PD15       63
70 #define GPIO_PE0        64
71 #define GPIO_PE1        65
72 #define GPIO_PE2        66
73 #define GPIO_PE3        67
74 #define GPIO_PE4        68
75 #define GPIO_PE5        69
76 #define GPIO_PE6        70
77 #define GPIO_PE7        71
78 #define GPIO_PE8        72
79 #define GPIO_PE9        73
80 #define GPIO_PE10       74
81 #define GPIO_PE11       75
82 #define GPIO_PE12       76
83 #define GPIO_PE13       77
84 #define GPIO_PE14       78
85 #define GPIO_PE15       79
86 #define GPIO_PF0        80
87 #define GPIO_PF1        81
88 #define GPIO_PF2        82
89 #define GPIO_PF3        83
90 #define GPIO_PF4        84
91 #define GPIO_PF5        85
92 #define GPIO_PF6        86
93 #define GPIO_PF7        87
94 #define GPIO_PF8        88
95 #define GPIO_PF9        89
96 #define GPIO_PF10       90
97 #define GPIO_PF11       91
98 #define GPIO_PF12       92
99 #define GPIO_PF13       93
100 #define GPIO_PF14       94
101 #define GPIO_PF15       95
102 #define GPIO_PG0        96
103 #define GPIO_PG1        97
104 #define GPIO_PG2        98
105 #define GPIO_PG3        99
106 #define GPIO_PG4        100
107 #define GPIO_PG5        101
108 #define GPIO_PG6        102
109 #define GPIO_PG7        103
110 #define GPIO_PG8        104
111 #define GPIO_PG9        105
112 #define GPIO_PG10       106
113 #define GPIO_PG11       107
114 #define GPIO_PG12       108
115 #define GPIO_PG13       109
116 #define GPIO_PG14       110
117 #define GPIO_PG15       111
118 #define GPIO_PH0        112
119 #define GPIO_PH1        113
120 #define GPIO_PH2        114
121 #define GPIO_PH3        115
122 #define GPIO_PH4        116
123 #define GPIO_PH5        117
124 #define GPIO_PH6        118
125 #define GPIO_PH7        119
126 #define GPIO_PH8        120
127 #define GPIO_PH9        121
128 #define GPIO_PH10       122
129 #define GPIO_PH11       123
130 #define GPIO_PH12       124
131 #define GPIO_PH13       125
132 #define GPIO_PH14       126     /* N/A */
133 #define GPIO_PH15       127     /* N/A */
134 #define GPIO_PI0        128
135 #define GPIO_PI1        129
136 #define GPIO_PI2        130
137 #define GPIO_PI3        131
138 #define GPIO_PI4        132
139 #define GPIO_PI5        133
140 #define GPIO_PI6        134
141 #define GPIO_PI7        135
142 #define GPIO_PI8        136
143 #define GPIO_PI9        137
144 #define GPIO_PI10       138
145 #define GPIO_PI11       139
146 #define GPIO_PI12       140
147 #define GPIO_PI13       141
148 #define GPIO_PI14       142
149 #define GPIO_PI15       143
150 #define GPIO_PJ0        144
151 #define GPIO_PJ1        145
152 #define GPIO_PJ2        146
153 #define GPIO_PJ3        147
154 #define GPIO_PJ4        148
155 #define GPIO_PJ5        149
156 #define GPIO_PJ6        150
157 #define GPIO_PJ7        151
158 #define GPIO_PJ8        152
159 #define GPIO_PJ9        153
160 #define GPIO_PJ10       154
161 #define GPIO_PJ11       155
162 #define GPIO_PJ12       156
163 #define GPIO_PJ13       157
164 #define GPIO_PJ14       158     /* N/A */
165 #define GPIO_PJ15       159     /* N/A */
166
167 #define MAX_BLACKFIN_GPIOS 160
168
169 struct gpio_port_t {
170         unsigned short port_fer;
171         unsigned short dummy1;
172         unsigned short data;
173         unsigned short dummy2;
174         unsigned short data_set;
175         unsigned short dummy3;
176         unsigned short data_clear;
177         unsigned short dummy4;
178         unsigned short dir_set;
179         unsigned short dummy5;
180         unsigned short dir_clear;
181         unsigned short dummy6;
182         unsigned short inen;
183         unsigned short dummy7;
184         unsigned int port_mux;
185 };
186
187 struct gpio_port_s {
188         unsigned short fer;
189         unsigned short data;
190         unsigned short dir;
191         unsigned short inen;
192         unsigned int mux;
193 };