]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff9cc69f2ca14cbd5e702b2f33fcd1810e46e043
treee008f4b0896cdeb2fb354a1e1babd2a568172498
parent725648d4c824a064c7ed788d34afcaf85dd5a80e
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