blob: 8a5beeece9969d10ddda6286016cf57f92af72e1 [file] [log] [blame]
Michael Hennerich983e1012009-01-07 23:14:39 +08001/*
Michael Hennerich621dd242009-09-28 12:23:41 +00002 * Copyright (C) 2008-2009 Analog Devices Inc.
Michael Hennerich983e1012009-01-07 23:14:39 +08003 * Licensed under the GPL-2 or later.
4 */
5
6
7#ifndef _MACH_GPIO_H_
8#define _MACH_GPIO_H_
9
Michael Hennerich983e1012009-01-07 23:14:39 +080010#define MAX_BLACKFIN_GPIOS 16
Michael Hennerich621dd242009-09-28 12:23:41 +000011#define BFIN_SPECIAL_GPIO_BANKS 3
Michael Hennerich983e1012009-01-07 23:14:39 +080012
Mike Frysinger812ae982010-07-05 08:40:41 +000013#define GPIO_PF0 0 /* PF */
14#define GPIO_PF1 1
15#define GPIO_PF2 2
16#define GPIO_PF3 3
17#define GPIO_PF4 4
18#define GPIO_PF5 5
19#define GPIO_PF6 6
20#define GPIO_PF7 7
21#define GPIO_PF8 8
22#define GPIO_PF9 9
23#define GPIO_PF10 10
24#define GPIO_PF11 11
25#define GPIO_PF12 12
26#define GPIO_PF13 13
27#define GPIO_PF14 14
28#define GPIO_PF15 15
29#define GPIO_PC0 16 /* PC */
30#define GPIO_PC1 17
31#define GPIO_PC4 20
32#define GPIO_PC5 21
33#define GPIO_PC6 22
34#define GPIO_PC7 23
35#define GPIO_PC8 24
36#define GPIO_PC9 25
37#define GPIO_PD0 32 /* PD */
38#define GPIO_PD1 33
39#define GPIO_PD2 34
40#define GPIO_PD3 35
41#define GPIO_PD4 36
42#define GPIO_PD5 37
43#define GPIO_PD6 38
44#define GPIO_PD7 39
45#define GPIO_PD8 40
46#define GPIO_PD9 41
47#define GPIO_PD10 42
48#define GPIO_PD11 43
49#define GPIO_PD12 44
50#define GPIO_PD13 45
51#define GPIO_PE0 48 /* PE */
52#define GPIO_PE1 49
53#define GPIO_PE2 50
54#define GPIO_PE3 51
55#define GPIO_PE4 52
56#define GPIO_PE5 53
57#define GPIO_PE6 54
58#define GPIO_PE7 55
59#define GPIO_PE8 56
60#define GPIO_PE9 57
61#define GPIO_PE10 58
62#define GPIO_PE11 59
63#define GPIO_PE12 60
64#define GPIO_PE13 61
65#define GPIO_PE14 62
66#define GPIO_PE15 63
Michael Hennerich983e1012009-01-07 23:14:39 +080067
68#define PORT_F GPIO_PF0
69#define PORT_C GPIO_PC0
70#define PORT_D GPIO_PD0
71#define PORT_E GPIO_PE0
72
Mike Frysinger4de2bf82010-10-25 21:11:10 -040073#include <mach-common/ports-c.h>
74#include <mach-common/ports-d.h>
75#include <mach-common/ports-e.h>
76#include <mach-common/ports-f.h>
77
Michael Hennerich983e1012009-01-07 23:14:39 +080078#endif /* _MACH_GPIO_H_ */