public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: arno@natisbad.org (Arnaud Ebalard)
To: linux-omap@vger.kernel.org
Cc: Kalle Valo <kalle.valo@iki.fi>
Subject: Re: N8x0 to mainline patches
Date: Wed, 15 Jul 2009 18:19:17 +0200	[thread overview]
Message-ID: <873a8xor5m.fsf@small.ssi.corp> (raw)
In-Reply-To: 87my776e9t.fsf@litku.valot.fi

Hi,

Kalle Valo <kalle.valo@iki.fi> writes:

> "Luke-Jr" <luke@dashjr.org> writes:
>
>> I noticed that the patch adding board-n8x0.c seems to be much smaller
>> than the older one used in Linux-OMAP. In particular, it lacks the
>> keymaps and such. Are those somewhere else now? 
>
> It's just not implemented yet. If you look at the plan, you see lots
> of things we need to implement:
>
> http://www.elinux.org/N800#The_Plan

Just noticed the thread and the link today. I will try and merge some
notes I have on the topic (http://natisbad.org/N810/) tomorrow.


>> Was the Linux-OMAP keyboard bug taken into consideration for the new
>> keyboard config struct?
>
> I'm not familiar with the issue. But if it makes sense, sure, we want
> to include the fix.

I use the patch on a 2.6.30-rc8-omap1 based l-o commit on my N810 and it
fixes the reported issue (missing keys).

BTW, I also use the following patch to be able to use the fn key with
xorg. One would argue this would be better to handle the issue at
another level but it is worth discussing considering what I read on
various ML:

http://lists.freedesktop.org/archives/hal/2009-January/012860.html
http://lists.freedesktop.org/archives/hal/2009-January/012868.html
http://lists.freedesktop.org/archives/hal/2009-January/012794.html
http://www.gossamer-threads.com/lists/maemo/developers/35105,

When the rx44 keymap support is added back in your quilt set, can we
discuss it. IIRC, the same kind of value (i.e. > 255) is also in the
rx-51. Any specific reason? 

Cheers,

a+

Index: linux-omap-2.6/arch/arm/mach-omap2/board-n800.c
===================================================================
--- linux-omap-2.6.orig/arch/arm/mach-omap2/board-n800.c	2009-06-20 12:07:11.000000000 +0200
+++ linux-omap-2.6/arch/arm/mach-omap2/board-n800.c	2009-06-27 20:29:00.000000000 +0200
@@ -85,7 +85,11 @@
 	[0x22] = KEY_SEMICOLON,
 	[0x23] = KEY_MINUS,
 	[0x24] = KEY_EQUAL,
+#ifdef CONFIG_REMAP_N810_FN_KEY
+	[0x2b] = KEY_LEFTALT,
+#else
 	[0x2b] = KEY_FN,
+#endif
 	[0x2c] = KEY_M,
 	[0x2f] = KEY_F8,
 
Index: linux-omap-2.6/drivers/input/keyboard/Kconfig
===================================================================
--- linux-omap-2.6.orig/drivers/input/keyboard/Kconfig	2009-06-20 12:07:11.000000000 +0200
+++ linux-omap-2.6/drivers/input/keyboard/Kconfig	2009-06-20 12:07:35.000000000 +0200
@@ -294,6 +294,20 @@
 	  If you say yes here you get support for the National Semiconductor
 	  LM8323 keypad controller.
 
+config REMAP_N810_FN_KEY
+       boolean "Nokia N810 keyboard Fn key remapping"
+       depends on MACH_NOKIA_N810 && KEYBOARD_LM8323
+       help
+          If you build your kernel for your Nokia N810 (which would
+	  possibly explain you selected LM8323 keypad chip above),
+	  you might want to select this option in order to have the
+	  Fn key (KEY_FN) advertise itself as left alt key
+          (KEY_LEFTALT).
+
+	  This is because KEY_FN value is higher than 255, and Xorg
+	  basically drops those values. Selecting the option allows
+	  you to use the key under X
+
 config KEYBOARD_PXA27x
 	tristate "PXA27x/PXA3xx keypad support"
 	depends on PXA27x || PXA3xx



  reply	other threads:[~2009-07-15 16:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-13 14:49 N8x0 to mainline patches Luke-Jr
2009-07-14  5:10 ` Kalle Valo
2009-07-15 16:19   ` Arnaud Ebalard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-07-19 21:00 Luke-Jr
2009-07-20  7:23 ` Arnaud Ebalard
2009-07-13  5:51 Kalle Valo
2009-07-13  6:03 ` Felipe Balbi
2009-07-13  6:51   ` Kalle Valo
2009-07-13  6:53     ` Felipe Balbi
2009-08-06  7:10       ` Tony Lindgren
2009-08-06 16:21         ` Kalle Valo
2009-08-06 16:27           ` Kalle Valo
2009-08-07  7:03             ` Tony Lindgren
2009-08-07  7:44               ` Kalle Valo
2009-08-07  7:51                 ` Tony Lindgren
2009-08-07  7:04           ` Tony Lindgren
2009-07-13 19:52 ` green

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=873a8xor5m.fsf@small.ssi.corp \
    --to=arno@natisbad.org \
    --cc=kalle.valo@iki.fi \
    --cc=linux-omap@vger.kernel.org \
    /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