|
1 | | -/* linux/arch/arm/mach-s3c2440/mach-mini2440.c |
| 1 | +/* linux/arch/arm/mach-s3c2440/mach-tq2440.c |
| 2 | + * |
| 3 | + * Copyright (c) 2013 Zhang Tong <[email protected]> |
| 4 | + * Largely based on mach-mini2440.c by Ramax Lo |
2 | 5 | * |
3 | 6 | * Copyright (c) 2008 Ramax Lo <[email protected]> |
4 | 7 | * Based on mach-anubis.c by Ben Dooks <[email protected]> |
5 | 8 | * and modifications by SBZ <[email protected]> and |
6 | 9 | * Weibing <http://weibing.blogbus.com> and |
7 | 10 | * Michel Pollet <[email protected]> |
8 | 11 | * |
9 | | - * For product information, visit http://code.google.com/p/mini2440/ |
10 | | - * |
11 | 12 | * This program is free software; you can redistribute it and/or modify |
12 | 13 | * it under the terms of the GNU General Public License version 2 as |
13 | 14 | * published by the Free Software Foundation. |
@@ -178,64 +179,31 @@ static struct platform_device tq2440_device_eth = { |
178 | 179 | }, |
179 | 180 | }; |
180 | 181 |
|
181 | | -/* CON5 |
182 | | - * +--+ /-----\ |
183 | | - * | | | | |
184 | | - * | | | BAT | |
185 | | - * | | \_____/ |
186 | | - * | | |
187 | | - * | | +----+ +----+ |
188 | | - * | | | K5 | | K1 | |
189 | | - * | | +----+ +----+ |
190 | | - * | | +----+ +----+ |
191 | | - * | | | K4 | | K2 | |
192 | | - * | | +----+ +----+ |
193 | | - * | | +----+ +----+ |
194 | | - * | | | K6 | | K3 | |
195 | | - * | | +----+ +----+ |
196 | | - * ..... |
197 | | - */ |
198 | 182 | static struct gpio_keys_button tq2440_buttons[] = { |
199 | 183 | { |
200 | | - .gpio = S3C2410_GPG(0), /* K1 */ |
| 184 | + .gpio = S3C2410_GPF(1), /* K1 */ |
201 | 185 | .code = KEY_F1, |
202 | 186 | .desc = "Button 1", |
203 | 187 | .active_low = 1, |
204 | 188 | }, |
205 | 189 | { |
206 | | - .gpio = S3C2410_GPG(3), /* K2 */ |
| 190 | + .gpio = S3C2410_GPF(4), /* K2 */ |
207 | 191 | .code = KEY_F2, |
208 | 192 | .desc = "Button 2", |
209 | 193 | .active_low = 1, |
210 | 194 | }, |
211 | 195 | { |
212 | | - .gpio = S3C2410_GPG(5), /* K3 */ |
| 196 | + .gpio = S3C2410_GPF(2), /* K3 */ |
213 | 197 | .code = KEY_F3, |
214 | 198 | .desc = "Button 3", |
215 | 199 | .active_low = 1, |
216 | 200 | }, |
217 | 201 | { |
218 | | - .gpio = S3C2410_GPG(6), /* K4 */ |
219 | | - .code = KEY_POWER, |
220 | | - .desc = "Power", |
221 | | - .active_low = 1, |
222 | | - }, |
223 | | - { |
224 | | - .gpio = S3C2410_GPG(7), /* K5 */ |
225 | | - .code = KEY_F5, |
226 | | - .desc = "Button 5", |
227 | | - .active_low = 1, |
228 | | - }, |
229 | | -#if 0 |
230 | | - /* this pin is also known as TCLK1 and seems to already |
231 | | - * marked as "in use" somehow in the kernel -- possibly wrongly */ |
232 | | - { |
233 | | - .gpio = S3C2410_GPG(11), /* K6 */ |
234 | | - .code = KEY_F6, |
235 | | - .desc = "Button 6", |
| 202 | + .gpio = S3C2410_GPF(0), /* K4 */ |
| 203 | + .code = KEY_F4, |
| 204 | + .desc = "Button 4", |
236 | 205 | .active_low = 1, |
237 | 206 | }, |
238 | | -#endif |
239 | 207 | }; |
240 | 208 |
|
241 | 209 | static struct gpio_keys_platform_data tq2440_button_data = { |
|
0 commit comments