Date:2010-09-10 19:15:26 (12 years 26 days ago)
Author:Maarten ter Huurne
Commit:45d30ba9b20e5adbf8797770a3c2f7a6ff7358fb
Message:MIPS: JZ4740: A320: Reformatted gpio keys table.

The table was already more than 80 characters wide and more fields have to be added to it.
No functional changes.
Files: arch/mips/jz4740/board-a320.c (1 diff)

Change Details

arch/mips/jz4740/board-a320.c
254254    /* TODO(CongoZombie): Confirm power slider pin (Booboo's docs seem unsure) */
255255
256256static struct gpio_keys_button a320_buttons[] = {
257    { .gpio = JZ_GPIO_PORTD(6), .active_low = 1, .code = KEY_UP }, /* D-pad up */
258    { .gpio = JZ_GPIO_PORTD(27), .active_low = 1, .code = KEY_DOWN }, /* D-pad down */
259    { .gpio = JZ_GPIO_PORTD(5), .active_low = 1, .code = KEY_LEFT }, /* D-pad left */
260    { .gpio = JZ_GPIO_PORTD(18), .active_low = 1, .code = KEY_RIGHT }, /* D-pad right */
261    { .gpio = JZ_GPIO_PORTD(0), .active_low = 1, .code = KEY_LEFTCTRL }, /* A button */
262    { .gpio = JZ_GPIO_PORTD(1), .active_low = 1, .code = KEY_LEFTALT }, /* B button */
263    { .gpio = JZ_GPIO_PORTD(19), .active_low = 1, .code = KEY_SPACE }, /* X button */
264    { .gpio = JZ_GPIO_PORTD(2), .active_low = 1, .code = KEY_LEFTSHIFT }, /* Y button */
265    { .gpio = JZ_GPIO_PORTD(14), .active_low = 1, .code = KEY_TAB }, /* Left shoulder button */
266    { .gpio = JZ_GPIO_PORTD(15), .active_low = 1, .code = KEY_BACKSPACE }, /* Right shoulder button */
267    { .gpio = JZ_GPIO_PORTC(17), .active_low = 1, .code = KEY_ENTER }, /* START button */
268    { .gpio = JZ_GPIO_PORTD(17), .active_low = 1, .code = KEY_ESC }, /* SELECT button */
269    { .gpio = JZ_GPIO_PORTD(29), .active_low = 1, .code = KEY_POWER }, /* POWER slider */
270    { .gpio = JZ_GPIO_PORTD(22), .active_low = 1, .code = KEY_PAUSE }, /* POWER hold */
257    /* D-pad up */ {
258        .gpio = JZ_GPIO_PORTD(6),
259        .active_low = 1,
260        .code = KEY_UP
261    },
262    /* D-pad down */ {
263        .gpio = JZ_GPIO_PORTD(27),
264        .active_low = 1,
265        .code = KEY_DOWN
266    },
267    /* D-pad left */ {
268        .gpio = JZ_GPIO_PORTD(5),
269        .active_low = 1,
270        .code = KEY_LEFT
271    },
272    /* D-pad right */ {
273        .gpio = JZ_GPIO_PORTD(18),
274        .active_low = 1,
275        .code = KEY_RIGHT
276    },
277    /* A button */ {
278        .gpio = JZ_GPIO_PORTD(0),
279        .active_low = 1,
280        .code = KEY_LEFTCTRL
281    },
282    /* B button */ {
283        .gpio = JZ_GPIO_PORTD(1),
284        .active_low = 1,
285        .code = KEY_LEFTALT
286    },
287    /* X button */ {
288        .gpio = JZ_GPIO_PORTD(19),
289        .active_low = 1,
290        .code = KEY_SPACE
291    },
292    /* Y button */ {
293        .gpio = JZ_GPIO_PORTD(2),
294        .active_low = 1,
295        .code = KEY_LEFTSHIFT
296    },
297    /* Left shoulder button */ {
298        .gpio = JZ_GPIO_PORTD(14),
299        .active_low = 1,
300        .code = KEY_TAB
301    },
302    /* Right shoulder button */ {
303        .gpio = JZ_GPIO_PORTD(15),
304        .active_low = 1,
305        .code = KEY_BACKSPACE
306    },
307    /* START button */ {
308        .gpio = JZ_GPIO_PORTC(17),
309        .active_low = 1,
310        .code = KEY_ENTER
311    },
312    /* SELECT button */ {
313        .gpio = JZ_GPIO_PORTD(17),
314        .active_low = 1,
315        .code = KEY_ESC
316    },
317    /* POWER slider */ {
318        .gpio = JZ_GPIO_PORTD(29),
319        .active_low = 1,
320        .code = KEY_POWER,
321    },
322    /* POWER hold */ {
323        .gpio = JZ_GPIO_PORTD(22),
324        .active_low = 1,
325        .code = KEY_PAUSE
326    },
271327};
272328
273329static struct gpio_keys_platform_data a320_gpio_keys_pdata = {

Archive Download the corresponding diff file



interactive