gpio: add GPIO support for F71882FG and F71889F
authorSimon Guinot <simon.guinot@sequanux.org>
Thu, 29 Aug 2013 20:56:56 +0000 (22:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Aug 2013 07:25:52 +0000 (09:25 +0200)
commit6c17aa0138a6c55364936bbaa35846e09a4db53b
treeddbe02fbee48e5cc0f058e9cda30a1c659e1df59
parentc6641da12e0f5516b75386dccedf163bbfeaabe0
gpio: add GPIO support for F71882FG and F71889F

This patch adds support for the GPIOs found on the Fintek super-I/O
chips F71882FG and F71889F.

A super-I/O is a legacy I/O controller embedded on x86 motherboards. It
is used to connect the low-bandwidth devices. Among others functions the
F71882FG/F71889F provides: a parallel port, two serial ports, a keyboard
controller, an hardware monitoring controller and some GPIO pins.

Note that this super-I/Os are embedded on some Atom-based LaCie NASes.
The GPIOs are used to control the LEDs and the hard drive power.

Changes since v3:
- Use request_muxed_region to protect the I/O ports against concurrent
  accesses.

Changes since v2:
- Remove useless NULL setters for driver data.

Changes since v1:
- Enhance the commit message by describing what is a Super-I/O.
- Use self-explanatory names for the GPIO register macros.
- Add a comment to explain the platform device and driver registration.
- Fix gpio_get when GPIO is configured in input mode. I only had
  the hardware to check this mode recently...

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-f7188x.c [new file with mode: 0644]
This page took 0.024674 seconds and 5 git commands to generate.