aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf538/include/mach/gpio.h
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2009-01-07 10:14:39 -0500
committerBryan Wu <cooloney@kernel.org>2009-01-07 10:14:39 -0500
commit983e1016050e3bb9d64bde0f7d4792a6fcb248d8 (patch)
tree96608f3bbbf340aaf27cf19723c1698545873be2 /arch/blackfin/mach-bf538/include/mach/gpio.h
parent16daaf59c9aa996c94cb17b30538eead61d63694 (diff)
Blackfin arch: gpio.h split into machine subfolders like already done for BF54x
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf538/include/mach/gpio.h')
-rw-r--r--arch/blackfin/mach-bf538/include/mach/gpio.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf538/include/mach/gpio.h b/arch/blackfin/mach-bf538/include/mach/gpio.h
new file mode 100644
index 000000000000..30f4f723f7cc
--- /dev/null
+++ b/arch/blackfin/mach-bf538/include/mach/gpio.h
@@ -0,0 +1,79 @@
1/*
2 * File: arch/blackfin/mach-bf538/include/mach/gpio.h
3 * Bugs: Enter bugs at http://blackfin.uclinux.org/
4 *
5 * Copyright (C) 2008 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
7 */
8
9
10#ifndef _MACH_GPIO_H_
11#define _MACH_GPIO_H_
12
13 /* FIXME:
14 * For now only support PORTF GPIOs.
15 * PORT C,D and E are for peripheral usage only
16 */
17#define MAX_BLACKFIN_GPIOS 16
18
19#define GPIO_PF0 0 /* PF */
20#define GPIO_PF1 1
21#define GPIO_PF2 2
22#define GPIO_PF3 3
23#define GPIO_PF4 4
24#define GPIO_PF5 5
25#define GPIO_PF6 6
26#define GPIO_PF7 7
27#define GPIO_PF8 8
28#define GPIO_PF9 9
29#define GPIO_PF10 10
30#define GPIO_PF11 11
31#define GPIO_PF12 12
32#define GPIO_PF13 13
33#define GPIO_PF14 14
34#define GPIO_PF15 15
35#define GPIO_PC0 16 /* PC */
36#define GPIO_PC1 17
37#define GPIO_PC4 20
38#define GPIO_PC5 21
39#define GPIO_PC6 22
40#define GPIO_PC7 23
41#define GPIO_PC8 24
42#define GPIO_PC9 25
43#define GPIO_PD0 32 /* PD */
44#define GPIO_PD1 33
45#define GPIO_PD2 34
46#define GPIO_PD3 35
47#define GPIO_PD4 36
48#define GPIO_PD5 37
49#define GPIO_PD6 38
50#define GPIO_PD7 39
51#define GPIO_PD8 40
52#define GPIO_PD9 41
53#define GPIO_PD10 42
54#define GPIO_PD11 43
55#define GPIO_PD12 44
56#define GPIO_PD13 45
57#define GPIO_PE0 48 /* PE */
58#define GPIO_PE1 49
59#define GPIO_PE2 50
60#define GPIO_PE3 51
61#define GPIO_PE4 52
62#define GPIO_PE5 53
63#define GPIO_PE6 54
64#define GPIO_PE7 55
65#define GPIO_PE8 56
66#define GPIO_PE9 57
67#define GPIO_PE10 58
68#define GPIO_PE11 59
69#define GPIO_PE12 60
70#define GPIO_PE13 61
71#define GPIO_PE14 62
72#define GPIO_PE15 63
73
74#define PORT_F GPIO_PF0
75#define PORT_C GPIO_PC0
76#define PORT_D GPIO_PD0
77#define PORT_E GPIO_PE0
78
79#endif /* _MACH_GPIO_H_ */