From: Vimal Singh <vimal.newwork@gmail.com>
To: "Arce, Abraham" <x0066660@ti.com>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RFC] [PATCH 2/3] OMAP4: Keyboard Board Support
Date: Wed, 14 Apr 2010 10:49:21 +0530 [thread overview]
Message-ID: <s2xce9ab5791004132219q528e6c7cyb709d78f8dc177ee@mail.gmail.com> (raw)
In-Reply-To: <27F9C60D11D683428E133F85D2BB4A53043D9EE7F6@dlee03.ent.ti.com>
On Wed, Apr 14, 2010 at 6:40 AM, Arce, Abraham <x0066660@ti.com> wrote:
> From: Syed Rafiuddin <rafiuddin.syed@ti.com>
>
> Keyboard support for SDP OMAP4430
>
> Signed-off-by: Abraham Arce <x0066660@ti.com>
> ---
'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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-04-14 5:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Acrbb1c3f6VIFUq3RumCrtM3k0PWuQ==>
2010-04-14 1:10 ` [RFC] [PATCH 2/3] OMAP4: Keyboard Board Support Arce, Abraham
2010-04-14 5:19 ` Vimal Singh [this message]
2010-04-15 22:59 ` Arce, Abraham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s2xce9ab5791004132219q528e6c7cyb709d78f8dc177ee@mail.gmail.com \
--to=vimal.newwork@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=x0066660@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).