• Mark Brown's avatar
    mfd: Add WM831x revision B support · f92e8f81
    Mark Brown authored
    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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    f92e8f81
wm831x-gpio.c 6.71 KB