aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2008-11-18 04:48:22 -0500
committerBryan Wu <cooloney@kernel.org>2008-11-18 04:48:22 -0500
commitdc26aec25d1a4e2690df166dbe843344728994ce (patch)
tree36717399eff88602af964f9f80814f9210698d95 /arch/blackfin/include
parentf940260a980a1ad7570dfd7a4b73c6ad2207f738 (diff)
Blackfin arch: BF538/9 Linux kernel Support
Add supporing for Blackfin BF538 and BF539 processors. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r--arch/blackfin/include/asm/gpio.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h
index ad33ac271fd9..c7d287ca5d0a 100644
--- a/arch/blackfin/include/asm/gpio.h
+++ b/arch/blackfin/include/asm/gpio.h
@@ -165,6 +165,74 @@
165 165
166#endif 166#endif
167 167
168#if defined(BF538_FAMILY)
169 /* FIXME:
170 * For now only support PORTF GPIOs.
171 * PORT C,D and E are for peripheral usage only
172 */
173#define MAX_BLACKFIN_GPIOS 16
174
175#define GPIO_PF0 0 /* PF */
176#define GPIO_PF1 1
177#define GPIO_PF2 2
178#define GPIO_PF3 3
179#define GPIO_PF4 4
180#define GPIO_PF5 5
181#define GPIO_PF6 6
182#define GPIO_PF7 7
183#define GPIO_PF8 8
184#define GPIO_PF9 9
185#define GPIO_PF10 10
186#define GPIO_PF11 11
187#define GPIO_PF12 12
188#define GPIO_PF13 13
189#define GPIO_PF14 14
190#define GPIO_PF15 15
191#define GPIO_PC0 16 /* PC */
192#define GPIO_PC1 17
193#define GPIO_PC4 20
194#define GPIO_PC5 21
195#define GPIO_PC6 22
196#define GPIO_PC7 23
197#define GPIO_PC8 24
198#define GPIO_PC9 25
199#define GPIO_PD0 32 /* PD */
200#define GPIO_PD1 33
201#define GPIO_PD2 34
202#define GPIO_PD3 35
203#define GPIO_PD4 36
204#define GPIO_PD5 37
205#define GPIO_PD6 38
206#define GPIO_PD7 39
207#define GPIO_PD8 40
208#define GPIO_PD9 41
209#define GPIO_PD10 42
210#define GPIO_PD11 43
211#define GPIO_PD12 44
212#define GPIO_PD13 45
213#define GPIO_PE0 48 /* PE */
214#define GPIO_PE1 49
215#define GPIO_PE2 50
216#define GPIO_PE3 51
217#define GPIO_PE4 52
218#define GPIO_PE5 53
219#define GPIO_PE6 54
220#define GPIO_PE7 55
221#define GPIO_PE8 56
222#define GPIO_PE9 57
223#define GPIO_PE10 58
224#define GPIO_PE11 59
225#define GPIO_PE12 60
226#define GPIO_PE13 61
227#define GPIO_PE14 62
228#define GPIO_PE15 63
229
230#define PORT_F GPIO_PF0
231#define PORT_C GPIO_PC0
232#define PORT_D GPIO_PD0
233#define PORT_E GPIO_PE0
234#endif
235
168#if defined(BF527_FAMILY) || defined(BF537_FAMILY) 236#if defined(BF527_FAMILY) || defined(BF537_FAMILY)
169#define MAX_BLACKFIN_GPIOS 48 237#define MAX_BLACKFIN_GPIOS 48
170 238