From: <mar...@us...> - 2007-06-02 16:03:10
|
Revision: 1018 http://svn.sourceforge.net/hackndev/?rev=1018&view=rev Author: marex_z71 Date: 2007-06-02 09:03:07 -0700 (Sat, 02 Jun 2007) Log Message: ----------- PalmLD: GPIO Keys stuff Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-06-02 12:02:54 UTC (rev 1017) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-06-02 16:03:07 UTC (rev 1018) @@ -306,7 +306,27 @@ }, }; +/******************************** + * GPIO Key - Voice Memo Button * + ********************************/ +#ifdef CONFIG_KEYBOARD_GPIO +static struct gpio_keys_button palmld_pxa_buttons[] = { + {KEY_F7, GPIO_NR_PALMLD_POWER_SWITCH, 0, "Power switch" }, +}; +static struct gpio_keys_platform_data palmld_pxa_keys_data = { + .buttons = palmld_pxa_buttons, + .nbuttons = ARRAY_SIZE(palmld_pxa_buttons), +}; + +static struct platform_device palmld_pxa_keys = { + .name = "gpio-keys", + .dev = { + .platform_data = &palmld_pxa_keys_data, + }, +}; +#endif + /******************** * Power Management * ********************/ Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h 2007-06-02 12:02:54 UTC (rev 1017) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h 2007-06-02 16:03:07 UTC (rev 1018) @@ -24,7 +24,7 @@ #define GPIO_NR_PALMLD_GPIO_RESET 1 #define GPIO_NR_PALMLD_POWER_DETECT 4 #define GPIO_NR_PALMLD_HOTSYNC_BUTTON_N 10 -#define GPIO_NR_PALMLD_POWER_SWITCH 11 +#define GPIO_NR_PALMLD_POWER_SWITCH 12 #define GPIO_NR_PALMLD_EARPHONE_DETECT 13 #define GPIO_NR_PALMLD_SD_DETECT_N 14 /* SD card inserted; RE FE; Input */ #define GPIO_NR_PALMLD_LOCK_SWITCH 15 /* keypad lock */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |