| To: | Phil Sutter <n0-1@freewrt.org> |
|---|---|
| Subject: | Re: [PATCH 2/2] input: add driver for S1 button of rb532 |
| From: | Geert Uytterhoeven <geert@linux-m68k.org> |
| Date: | Sat, 24 Jan 2009 09:34:43 +0100 (CET) |
| Cc: | Dmitry Torokhov <dtor@mail.ru>, linux-input@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, Florian Fainelli <florian@openwrt.org> |
| In-reply-to: | <20090122191216.15285400E106@mail.nwl.cc> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1232651528-19870-1-git-send-email-n0-1@freewrt.org> <1232651528-19870-2-git-send-email-n0-1@freewrt.org> <20090122191216.15285400E106@mail.nwl.cc> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Thu, 22 Jan 2009, Phil Sutter wrote:
> Mikrotik's Routerboard 532 has two builtin buttons, from which one
> triggers a hardware reset. The other one is accessible through GPIO pin
> 1. Sadly, this pin is being multiplexed with UART0 input, so enabling it
> as interrupt source (as implied by the gpio-keys driver) is not possible
> unless UART0 has been turned off. The later one though is a rather bad
> idea as the Routerboard is an embedded device with only a single serial
> port, so it's almost always used as serial console device.
>
> This patch adds a driver based on INPUT_POLLDEV, which disables the UART
> and reconfigures GPIO pin 1 temporarily while reading the button state.
> This procedure works fine and has been tested as part of another,
> unpublished driver for this device.
What happens when you receive UART input while the UART is disabled? Is it
lost?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Au1550 with kernel linux-2.6.28.1, Manuel Lauss |
|---|---|
| Next by Date: | Re: Au1550 with kernel linux-2.6.28.1, Frank Neuber |
| Previous by Thread: | [PATCH 2/2] input: add driver for S1 button of rb532, Phil Sutter |
| Next by Thread: | Re: [PATCH 2/2] input: add driver for S1 button of rb532, Phil Sutter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |