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