aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/include/asm/gpio.h')
-rw-r--r--arch/blackfin/include/asm/gpio.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h
index c7d287ca5d0a..d8485624006a 100644
--- a/arch/blackfin/include/asm/gpio.h
+++ b/arch/blackfin/include/asm/gpio.h
@@ -143,6 +143,57 @@
143#define PERIPHERAL_USAGE 1 143#define PERIPHERAL_USAGE 1
144#define GPIO_USAGE 0 144#define GPIO_USAGE 0
145 145
146#if defined(BF518_FAMILY)
147#define MAX_BLACKFIN_GPIOS 40
148
149#define GPIO_PF0 0
150#define GPIO_PF1 1
151#define GPIO_PF2 2
152#define GPIO_PF3 3
153#define GPIO_PF4 4
154#define GPIO_PF5 5
155#define GPIO_PF6 6
156#define GPIO_PF7 7
157#define GPIO_PF8 8
158#define GPIO_PF9 9
159#define GPIO_PF10 10
160#define GPIO_PF11 11
161#define GPIO_PF12 12
162#define GPIO_PF13 13
163#define GPIO_PF14 14
164#define GPIO_PF15 15
165#define GPIO_PG0 16
166#define GPIO_PG1 17
167#define GPIO_PG2 18
168#define GPIO_PG3 19
169#define GPIO_PG4 20
170#define GPIO_PG5 21
171#define GPIO_PG6 22
172#define GPIO_PG7 23
173#define GPIO_PG8 24
174#define GPIO_PG9 25
175#define GPIO_PG10 26
176#define GPIO_PG11 27
177#define GPIO_PG12 28
178#define GPIO_PG13 29
179#define GPIO_PG14 30
180#define GPIO_PG15 31
181#define GPIO_PH0 32
182#define GPIO_PH1 33
183#define GPIO_PH2 34
184#define GPIO_PH3 35
185#define GPIO_PH4 36
186#define GPIO_PH5 37
187#define GPIO_PH6 38
188#define GPIO_PH7 39
189
190#define PORT_F GPIO_PF0
191#define PORT_G GPIO_PG0
192#define PORT_H GPIO_PH0
193
194#endif
195
196
146#ifdef BF533_FAMILY 197#ifdef BF533_FAMILY
147#define MAX_BLACKFIN_GPIOS 16 198#define MAX_BLACKFIN_GPIOS 16
148 199