On Mon, Mar 29, 2010 at 09:58:02PM +0200, Janusz Krzysztofik wrote:
Monday 29 March 2010 16:19:23 Janusz Krzysztofik napisaĆ(a):
This series of patches adds support for an external keyboard (called mailboard) connected to the Amstrad Delta (E3) videophone.
The series is based on a patch by Matt Callow, created against linux-omap-2.6.19[1], initially submitted to the e3-hacking mailing list in April 2006[2].
Since the keyboard serial clock line is connected to a GPIO line, it generates interrupts every single bit received. In order to handle this correctly, the code makes use of a FIQ hardware feature. Since all GPIO generated interrupts would be converted to FIQ, the handler must include support for all supported GPIO connected devices: the keyboard, a modem and a hook switch.
My modifications to the original patch include: - split into several patches, - refresh against a recent linux version, - a lot of cleanups, mainly to get rid of checkpatch reported issues, - add support for handling interrupts generated by a GPIO line that the meanwhile activated hook switch hangs off. v2 changes: - remove scan code to key code mapping from the serio driver, that doesn't belong here and should be set up from userspace;
Hi,
For those of you who would like to do some testing:
You'll need a utility for installing a key table. Given no single hint from linux-input team,
Sorry about that.
I ended up using input-kbd, that is part of input-utils package, at least on Gentoo and Debian. Other possibilities I know of: - V4L guys provided linux/Documentation/DocBook/v4l/keytable.c.xml example, - http://0pointer.de/lennart/projects/keyfuzz/
HAL used to be responsible for loading custom keymaps on modern distros but I believe now that task is moved into udev (see extras/keymap). -- Dmitry