Go to the documentation of this file.
15 #ifndef __ASM_ARCH_GPIO_H
16 #define __ASM_ARCH_GPIO_H __FILE__
19 #define S5PC100_GPIO_A0_NR (8)
20 #define S5PC100_GPIO_A1_NR (5)
21 #define S5PC100_GPIO_B_NR (8)
22 #define S5PC100_GPIO_C_NR (5)
23 #define S5PC100_GPIO_D_NR (7)
24 #define S5PC100_GPIO_E0_NR (8)
25 #define S5PC100_GPIO_E1_NR (6)
26 #define S5PC100_GPIO_F0_NR (8)
27 #define S5PC100_GPIO_F1_NR (8)
28 #define S5PC100_GPIO_F2_NR (8)
29 #define S5PC100_GPIO_F3_NR (4)
30 #define S5PC100_GPIO_G0_NR (8)
31 #define S5PC100_GPIO_G1_NR (3)
32 #define S5PC100_GPIO_G2_NR (7)
33 #define S5PC100_GPIO_G3_NR (7)
34 #define S5PC100_GPIO_H0_NR (8)
35 #define S5PC100_GPIO_H1_NR (8)
36 #define S5PC100_GPIO_H2_NR (8)
37 #define S5PC100_GPIO_H3_NR (8)
38 #define S5PC100_GPIO_I_NR (8)
39 #define S5PC100_GPIO_J0_NR (8)
40 #define S5PC100_GPIO_J1_NR (5)
41 #define S5PC100_GPIO_J2_NR (8)
42 #define S5PC100_GPIO_J3_NR (8)
43 #define S5PC100_GPIO_J4_NR (4)
44 #define S5PC100_GPIO_K0_NR (8)
45 #define S5PC100_GPIO_K1_NR (6)
46 #define S5PC100_GPIO_K2_NR (8)
47 #define S5PC100_GPIO_K3_NR (8)
48 #define S5PC100_GPIO_L0_NR (8)
49 #define S5PC100_GPIO_L1_NR (8)
50 #define S5PC100_GPIO_L2_NR (8)
51 #define S5PC100_GPIO_L3_NR (8)
52 #define S5PC100_GPIO_L4_NR (8)
61 #define S5PC100_GPIO_NEXT(__gpio) \
62 ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1)
103 #define S5PC100_GPA0(_nr) (S5PC100_GPIO_A0_START + (_nr))
104 #define S5PC100_GPA1(_nr) (S5PC100_GPIO_A1_START + (_nr))
105 #define S5PC100_GPB(_nr) (S5PC100_GPIO_B_START + (_nr))
106 #define S5PC100_GPC(_nr) (S5PC100_GPIO_C_START + (_nr))
107 #define S5PC100_GPD(_nr) (S5PC100_GPIO_D_START + (_nr))
108 #define S5PC100_GPE0(_nr) (S5PC100_GPIO_E0_START + (_nr))
109 #define S5PC100_GPE1(_nr) (S5PC100_GPIO_E1_START + (_nr))
110 #define S5PC100_GPF0(_nr) (S5PC100_GPIO_F0_START + (_nr))
111 #define S5PC100_GPF1(_nr) (S5PC100_GPIO_F1_START + (_nr))
112 #define S5PC100_GPF2(_nr) (S5PC100_GPIO_F2_START + (_nr))
113 #define S5PC100_GPF3(_nr) (S5PC100_GPIO_F3_START + (_nr))
114 #define S5PC100_GPG0(_nr) (S5PC100_GPIO_G0_START + (_nr))
115 #define S5PC100_GPG1(_nr) (S5PC100_GPIO_G1_START + (_nr))
116 #define S5PC100_GPG2(_nr) (S5PC100_GPIO_G2_START + (_nr))
117 #define S5PC100_GPG3(_nr) (S5PC100_GPIO_G3_START + (_nr))
118 #define S5PC100_GPH0(_nr) (S5PC100_GPIO_H0_START + (_nr))
119 #define S5PC100_GPH1(_nr) (S5PC100_GPIO_H1_START + (_nr))
120 #define S5PC100_GPH2(_nr) (S5PC100_GPIO_H2_START + (_nr))
121 #define S5PC100_GPH3(_nr) (S5PC100_GPIO_H3_START + (_nr))
122 #define S5PC100_GPI(_nr) (S5PC100_GPIO_I_START + (_nr))
123 #define S5PC100_GPJ0(_nr) (S5PC100_GPIO_J0_START + (_nr))
124 #define S5PC100_GPJ1(_nr) (S5PC100_GPIO_J1_START + (_nr))
125 #define S5PC100_GPJ2(_nr) (S5PC100_GPIO_J2_START + (_nr))
126 #define S5PC100_GPJ3(_nr) (S5PC100_GPIO_J3_START + (_nr))
127 #define S5PC100_GPJ4(_nr) (S5PC100_GPIO_J4_START + (_nr))
128 #define S5PC100_GPK0(_nr) (S5PC100_GPIO_K0_START + (_nr))
129 #define S5PC100_GPK1(_nr) (S5PC100_GPIO_K1_START + (_nr))
130 #define S5PC100_GPK2(_nr) (S5PC100_GPIO_K2_START + (_nr))
131 #define S5PC100_GPK3(_nr) (S5PC100_GPIO_K3_START + (_nr))
132 #define S5PC100_GPL0(_nr) (S5PC100_GPIO_L0_START + (_nr))
133 #define S5PC100_GPL1(_nr) (S5PC100_GPIO_L1_START + (_nr))
134 #define S5PC100_GPL2(_nr) (S5PC100_GPIO_L2_START + (_nr))
135 #define S5PC100_GPL3(_nr) (S5PC100_GPIO_L3_START + (_nr))
136 #define S5PC100_GPL4(_nr) (S5PC100_GPIO_L4_START + (_nr))
139 #define S3C_GPIO_END S5PC100_GPIO_END
142 #define ARCH_NR_GPIOS (S5PC100_GPIO_END + 1)