blob: 3561c7d8935b39228fa665f7624f5cfc558abbf7 [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
Mike Frysinger9466a052011-06-27 14:46:14 -040011#ifdef CONFIG_GPIOLIB
12/* We only use the special logic with GPIOLIB devices */
Michael Hennerich621dd242009-09-28 12:23:41 +000013#define BFIN_SPECIAL_GPIO_BANKS 3
Mike Frysinger9466a052011-06-27 14:46:14 -040014#endif
Michael Hennerich983e1012009-01-07 23:14:39 +080015
Mike Frysinger812ae982010-07-05 08:40:41 +000016#define GPIO_PF0 0 /* PF */
17#define GPIO_PF1 1
18#define GPIO_PF2 2
19#define GPIO_PF3 3
20#define GPIO_PF4 4
21#define GPIO_PF5 5
22#define GPIO_PF6 6
23#define GPIO_PF7 7
24#define GPIO_PF8 8
25#define GPIO_PF9 9
26#define GPIO_PF10 10
27#define GPIO_PF11 11
28#define GPIO_PF12 12
29#define GPIO_PF13 13
30#define GPIO_PF14 14
31#define GPIO_PF15 15
32#define GPIO_PC0 16 /* PC */
33#define GPIO_PC1 17
34#define GPIO_PC4 20
35#define GPIO_PC5 21
36#define GPIO_PC6 22
37#define GPIO_PC7 23
38#define GPIO_PC8 24
39#define GPIO_PC9 25
40#define GPIO_PD0 32 /* PD */
41#define GPIO_PD1 33
42#define GPIO_PD2 34
43#define GPIO_PD3 35
44#define GPIO_PD4 36
45#define GPIO_PD5 37
46#define GPIO_PD6 38
47#define GPIO_PD7 39
48#define GPIO_PD8 40
49#define GPIO_PD9 41
50#define GPIO_PD10 42
51#define GPIO_PD11 43
52#define GPIO_PD12 44
53#define GPIO_PD13 45
54#define GPIO_PE0 48 /* PE */
55#define GPIO_PE1 49
56#define GPIO_PE2 50
57#define GPIO_PE3 51
58#define GPIO_PE4 52
59#define GPIO_PE5 53
60#define GPIO_PE6 54
61#define GPIO_PE7 55
62#define GPIO_PE8 56
63#define GPIO_PE9 57
64#define GPIO_PE10 58
65#define GPIO_PE11 59
66#define GPIO_PE12 60
67#define GPIO_PE13 61
68#define GPIO_PE14 62
69#define GPIO_PE15 63
Michael Hennerich983e1012009-01-07 23:14:39 +080070
71#define PORT_F GPIO_PF0
72#define PORT_C GPIO_PC0
73#define PORT_D GPIO_PD0
74#define PORT_E GPIO_PE0
75
Mike Frysinger4de2bf82010-10-25 21:11:10 -040076#include <mach-common/ports-c.h>
77#include <mach-common/ports-d.h>
78#include <mach-common/ports-e.h>
79#include <mach-common/ports-f.h>
80
Michael Hennerich983e1012009-01-07 23:14:39 +080081#endif /* _MACH_GPIO_H_ */