Re: [RFC] [PATCH 2/3] OMAP4: Keyboard Board Support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 14, 2010 at 6:40 AM, Arce, Abraham <x0066660@xxxxxx> wrote:
> From: Syed Rafiuddin <rafiuddin.syed@xxxxxx>
>
> Keyboard support for SDP OMAP4430
>
> Signed-off-by: Abraham Arce <x0066660@xxxxxx>
> ---

'Form: Syed Rafiuddin', but not 'Signed-off-by:'... is it correct?


>  arch/arm/mach-omap2/board-4430sdp.c |   61 ++++++++++++++--------------------
>  1 files changed, 25 insertions(+), 36 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
> index 9a35367..747a4d8 100644
> --- a/arch/arm/mach-omap2/board-4430sdp.c
> +++ b/arch/arm/mach-omap2/board-4430sdp.c
> @@ -35,16 +35,13 @@
>  #include <plat/timer-gp.h>
>  #include <plat/usb.h>
>  #include <plat/syntm12xx.h>
> -#include <plat/keypad.h>
>  #include <asm/hardware/gic.h>
>  #include <asm/hardware/cache-l2x0.h>
>  #include <linux/i2c/twl.h>
>  #include <linux/regulator/machine.h>
>  #include "mmc-twl4030.h"
>
> -#define OMAP4_KBDOCP_BASE               0x4A31C000
> -
> -static int omap_keymap[] = {
> +static int sdp4430_keymap[] = {
>        KEY(0, 0, KEY_E),
>        KEY(0, 1, KEY_D),
>        KEY(0, 2, KEY_X),
> @@ -52,7 +49,7 @@ static int omap_keymap[] = {
>        KEY(0, 4, KEY_W),
>        KEY(0, 5, KEY_S),
>        KEY(0, 6, KEY_Q),
> -       KEY(0, 7, KEY_UNKNOWN),
> +       KEY(0, 7, KEY_PROG1),
>
>        KEY(1, 0, KEY_R),
>        KEY(1, 1, KEY_F),
> @@ -61,7 +58,7 @@ static int omap_keymap[] = {
>        KEY(1, 4, KEY_Y),
>        KEY(1, 5, KEY_H),
>        KEY(1, 6, KEY_A),
> -       KEY(1, 7, KEY_UNKNOWN),
> +       KEY(1, 7, KEY_PROG2),
>
>        KEY(2, 0, KEY_T),
>        KEY(2, 1, KEY_G),
> @@ -70,23 +67,23 @@ static int omap_keymap[] = {
>        KEY(2, 4, KEY_U),
>        KEY(2, 5, KEY_J),
>        KEY(2, 6, KEY_N),
> -       KEY(2, 7, KEY_UNKNOWN),
> +       KEY(2, 7, KEY_PROG3),
>
>        KEY(3, 0, KEY_HOME),
>        KEY(3, 1, KEY_SEND),
>        KEY(3, 2, KEY_END),
>        KEY(3, 3, KEY_F1),
> -       KEY(3, 4, KEY_LEFTSHIFT),
> +       KEY(3, 4, KEY_F2),
>        KEY(3, 5, KEY_F3),
>        KEY(3, 6, KEY_BACK),
> -       KEY(3, 7, KEY_UNKNOWN),
> +       KEY(3, 7, KEY_PROG4),
>
> -       KEY(4, 0, KEY_UNKNOWN),
> -       KEY(4, 1, KEY_UNKNOWN),
> -       KEY(4, 2, KEY_UNKNOWN),
> -       KEY(4, 3, KEY_UNKNOWN),
> +       KEY(4, 0, KEY_F5),
> +       KEY(4, 1, KEY_F6),
> +       KEY(4, 2, KEY_F7),
> +       KEY(4, 3, KEY_F8),
>        KEY(4, 4, KEY_VOLUMEUP),
> -       KEY(4, 5, KEY_UNKNOWN),
> +       KEY(4, 5, KEY_F9),
>        KEY(4, 6, KEY_BACKSPACE),
>        KEY(4, 7, KEY_F4),
>
> @@ -108,7 +105,7 @@ static int omap_keymap[] = {
>        KEY(6, 6, KEY_P),
>        KEY(6, 7, KEY_OK),
>
> -       KEY(7, 0, KEY_UNKNOWN),
> +       KEY(7, 0, KEY_LEFTSHIFT),
>        KEY(7, 1, KEY_ENTER),
>        KEY(7, 2, KEY_CAPSLOCK),
>        KEY(7, 3, KEY_SPACE),
> @@ -119,31 +116,23 @@ static int omap_keymap[] = {
>        0,
>  };

Are you aware of that interpretation of 'row' and 'col' get reversed
in matrix keymap framework.
Also last element '0' should be removed.

-- 
Regards,
Vimal Singh
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux