linux_dsm_epyc7002/arch/mips/include/asm/mach-rc32434
Phil Sutter d9bdffd210 Input: add driver for S1 button of rb532
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.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2009-03-09 20:10:12 -07:00
..
cpu-feature-overrides.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
ddr.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
dma_v.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
dma.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
eth.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
gpio.h Input: add driver for S1 button of rb532 2009-03-09 20:10:12 -07:00
integ.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
irq.h MIPS: RB532: Add set_type() function to IRQ struct. 2009-01-30 21:32:59 +00:00
pci.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
prom.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
rb.h MIPS: RB532: Update headers 2009-01-30 21:33:01 +00:00
rc32434.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
timer.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00
war.h MIPS: Move headfiles to new location below arch/mips/include 2008-10-11 16:18:52 +01:00