Michael Hennerich | 983e101 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 1 | /* |
Michael Hennerich | 983e101 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 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 | |
Mike Frysinger | 812ae98 | 2010-07-05 08:40:41 +0000 | [diff] [blame] | 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_PG0 16 |
| 29 | #define GPIO_PG1 17 |
| 30 | #define GPIO_PG2 18 |
| 31 | #define GPIO_PG3 19 |
| 32 | #define GPIO_PG4 20 |
| 33 | #define GPIO_PG5 21 |
| 34 | #define GPIO_PG6 22 |
| 35 | #define GPIO_PG7 23 |
| 36 | #define GPIO_PG8 24 |
| 37 | #define GPIO_PG9 25 |
| 38 | #define GPIO_PG10 26 |
| 39 | #define GPIO_PG11 27 |
| 40 | #define GPIO_PG12 28 |
| 41 | #define GPIO_PG13 29 |
| 42 | #define GPIO_PG14 30 |
| 43 | #define GPIO_PG15 31 |
| 44 | #define GPIO_PH0 32 |
| 45 | #define GPIO_PH1 33 |
| 46 | #define GPIO_PH2 34 |
| 47 | #define GPIO_PH3 35 |
| 48 | #define GPIO_PH4 36 |
| 49 | #define GPIO_PH5 37 |
| 50 | #define GPIO_PH6 38 |
| 51 | #define GPIO_PH7 39 |
| 52 | #define GPIO_PH8 40 |
| 53 | #define GPIO_PH9 41 |
| 54 | #define GPIO_PH10 42 |
| 55 | #define GPIO_PH11 43 |
| 56 | #define GPIO_PH12 44 |
| 57 | #define GPIO_PH13 45 |
| 58 | #define GPIO_PH14 46 |
| 59 | #define GPIO_PH15 47 |
Michael Hennerich | 983e101 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 60 | |
| 61 | #define PORT_F GPIO_PF0 |
| 62 | #define PORT_G GPIO_PG0 |
| 63 | #define PORT_H GPIO_PH0 |
| 64 | |
Mike Frysinger | 4de2bf8 | 2010-10-25 21:11:10 -0400 | [diff] [blame^] | 65 | #include <mach-common/ports-f.h> |
| 66 | #include <mach-common/ports-g.h> |
| 67 | #include <mach-common/ports-h.h> |
| 68 | |
Michael Hennerich | 983e101 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 69 | #endif /* _MACH_GPIO_H_ */ |