Commit | Line | Data |
---|---|---|
983e1016 MH |
1 | /* |
2 | * File: arch/blackfin/mach-bf527/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 | #define MAX_BLACKFIN_GPIOS 48 | |
14 | ||
15 | #define GPIO_PF0 0 | |
16 | #define GPIO_PF1 1 | |
17 | #define GPIO_PF2 2 | |
18 | #define GPIO_PF3 3 | |
19 | #define GPIO_PF4 4 | |
20 | #define GPIO_PF5 5 | |
21 | #define GPIO_PF6 6 | |
22 | #define GPIO_PF7 7 | |
23 | #define GPIO_PF8 8 | |
24 | #define GPIO_PF9 9 | |
25 | #define GPIO_PF10 10 | |
26 | #define GPIO_PF11 11 | |
27 | #define GPIO_PF12 12 | |
28 | #define GPIO_PF13 13 | |
29 | #define GPIO_PF14 14 | |
30 | #define GPIO_PF15 15 | |
31 | #define GPIO_PG0 16 | |
32 | #define GPIO_PG1 17 | |
33 | #define GPIO_PG2 18 | |
34 | #define GPIO_PG3 19 | |
35 | #define GPIO_PG4 20 | |
36 | #define GPIO_PG5 21 | |
37 | #define GPIO_PG6 22 | |
38 | #define GPIO_PG7 23 | |
39 | #define GPIO_PG8 24 | |
40 | #define GPIO_PG9 25 | |
41 | #define GPIO_PG10 26 | |
42 | #define GPIO_PG11 27 | |
43 | #define GPIO_PG12 28 | |
44 | #define GPIO_PG13 29 | |
45 | #define GPIO_PG14 30 | |
46 | #define GPIO_PG15 31 | |
47 | #define GPIO_PH0 32 | |
48 | #define GPIO_PH1 33 | |
49 | #define GPIO_PH2 34 | |
50 | #define GPIO_PH3 35 | |
51 | #define GPIO_PH4 36 | |
52 | #define GPIO_PH5 37 | |
53 | #define GPIO_PH6 38 | |
54 | #define GPIO_PH7 39 | |
55 | #define GPIO_PH8 40 | |
56 | #define GPIO_PH9 41 | |
57 | #define GPIO_PH10 42 | |
58 | #define GPIO_PH11 43 | |
59 | #define GPIO_PH12 44 | |
60 | #define GPIO_PH13 45 | |
61 | #define GPIO_PH14 46 | |
62 | #define GPIO_PH15 47 | |
63 | ||
64 | #define PORT_F GPIO_PF0 | |
65 | #define PORT_G GPIO_PG0 | |
66 | #define PORT_H GPIO_PH0 | |
67 | ||
68 | #endif /* _MACH_GPIO_H_ */ |