Mike Frysinger | 83ebf37 | 2010-06-02 04:17:26 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 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 MAX_BLACKFIN_GPIOS 48 |
| 11 | |
| 12 | #define GPIO_PF0 0 |
| 13 | #define GPIO_PF1 1 |
| 14 | #define GPIO_PF2 2 |
| 15 | #define GPIO_PF3 3 |
| 16 | #define GPIO_PF4 4 |
| 17 | #define GPIO_PF5 5 |
| 18 | #define GPIO_PF6 6 |
| 19 | #define GPIO_PF7 7 |
| 20 | #define GPIO_PF8 8 |
| 21 | #define GPIO_PF9 9 |
| 22 | #define GPIO_PF10 10 |
| 23 | #define GPIO_PF11 11 |
| 24 | #define GPIO_PF12 12 |
| 25 | #define GPIO_PF13 13 |
| 26 | #define GPIO_PF14 14 |
| 27 | #define GPIO_PF15 15 |
| 28 | #define GPIO_PF16 16 |
| 29 | #define GPIO_PF17 17 |
| 30 | #define GPIO_PF18 18 |
| 31 | #define GPIO_PF19 19 |
| 32 | #define GPIO_PF20 20 |
| 33 | #define GPIO_PF21 21 |
| 34 | #define GPIO_PF22 22 |
| 35 | #define GPIO_PF23 23 |
| 36 | #define GPIO_PF24 24 |
| 37 | #define GPIO_PF25 25 |
| 38 | #define GPIO_PF26 26 |
| 39 | #define GPIO_PF27 27 |
| 40 | #define GPIO_PF28 28 |
| 41 | #define GPIO_PF29 29 |
| 42 | #define GPIO_PF30 30 |
| 43 | #define GPIO_PF31 31 |
| 44 | #define GPIO_PF32 32 |
| 45 | #define GPIO_PF33 33 |
| 46 | #define GPIO_PF34 34 |
| 47 | #define GPIO_PF35 35 |
| 48 | #define GPIO_PF36 36 |
| 49 | #define GPIO_PF37 37 |
| 50 | #define GPIO_PF38 38 |
| 51 | #define GPIO_PF39 39 |
| 52 | #define GPIO_PF40 40 |
| 53 | #define GPIO_PF41 41 |
| 54 | #define GPIO_PF42 42 |
| 55 | #define GPIO_PF43 43 |
| 56 | #define GPIO_PF44 44 |
| 57 | #define GPIO_PF45 45 |
| 58 | #define GPIO_PF46 46 |
| 59 | #define GPIO_PF47 47 |
| 60 | |
| 61 | #define PORT_FIO0 GPIO_0 |
| 62 | #define PORT_FIO1 GPIO_16 |
| 63 | #define PORT_FIO2 GPIO_32 |
| 64 | |
| 65 | #endif /* _MACH_GPIO_H_ */ |