mfd: Add WM831x revision B support
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Feb 2010 18:45:25 +0000 (18:45 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:17:29 +0000 (22:17 +0100)
commitf92e8f8144243a3651b2e350b706ea2d04931f8c
treee008f4b0896cdeb2fb354a1e1babd2a568172498
parent6b8274fafeec9b112cee5b6ced5f9189957c889f
mfd: Add WM831x revision B support

Revision B of the WM831x devices changes the sense of the tristate
bit for GPIO configuration, inverting it to become an enable instead.
Take account of this in the gpiolib driver.

A current sink regulation status bit has also been added in revision B,
add a flag indicating if it's present but don't use it yet.

This revision also adds an interrupt on key up for the ON pin event
which the existing code is able to take advantage of.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/wm831x-gpio.c
drivers/mfd/wm831x-core.c
include/linux/mfd/wm831x/core.h
include/linux/mfd/wm831x/gpio.h