From: "Juha Yrjölä" <juha.yrjola@nokia.com>
To: ext Komal Shah <komal_shah802003@yahoo.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] keypad platform_data and 24xx support refresh
Date: Sun, 15 Jan 2006 18:25:13 +0200 [thread overview]
Message-ID: <1137342313.7691.11.camel@two.research.nokia.com> (raw)
In-Reply-To: <20060115102754.73099.qmail@web32910.mail.mud.yahoo.com>
On Sun, 2006-01-15 at 02:27 -0800, ext Komal Shah wrote:
> Attached patch is refresh against the latest git head, from the
> earlier patch as per following thread.
Looks good, except:
> +#ifdef CONFIG_MACH_OMAP_H4
> +#define NUM_ROWS 6
> +#define NUM_COLS 7
> +static unsigned int row_gpio_num[NUM_ROWS] = { 88, 89, 124, 11, 6, 96 };
> +static unsigned int col_gpio_num[NUM_COLS] = { 90, 91, 100, 36, 12, 97, 98 };
Why not use the platform_data for this information, too? It's kind of
bad to assume this for all the 2420 boards.
> static int test_keymap[] = {
> KEY(0, 0, KEY_F4),
> KEY(1, 0, KEY_LEFT),
This can go away, too. We'll put it into board-nokia770.c.
> +#ifdef CONFIG_MACH_OMAP_H4
> +static void set_col_gpio_val(u8 value)
Not H4 but OMAP2.
> + if (machine_is_omap_h4()) {
Ditto.
There's also a fairly important patch we haven't published yet. The
patch provides a work-around to the "ghost key" problem that happens
when necessary precautions have not been made in the keypad HW design.
If there are three (or more) keys pressed at the same time, and they
form a triangle on the keypad matrix, the HW thinks there are some extra
keys pressed.
Unfortunately I don't have time now to come up with a proper patch, but
I've put our version of the driver here:
http://jemmari.tky.hut.fi/~jey/omap-keypad.c
Cheers,
Juha
next prev parent reply other threads:[~2006-01-15 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 10:27 [PATCH] keypad platform_data and 24xx support refresh Komal Shah
2006-01-15 16:25 ` Juha Yrjölä [this message]
2006-01-16 17:24 ` Komal Shah
2006-01-16 18:17 ` Juha Yrjölä
2006-01-17 5:25 ` Komal Shah
-- strict thread matches above, loose matches on Subject: below --
2006-01-16 17:29 Woodruff, Richard
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=1137342313.7691.11.camel@two.research.nokia.com \
--to=juha.yrjola@nokia.com \
--cc=komal_shah802003@yahoo.com \
--cc=linux-omap-open-source@linux.omap.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