kernel_optimize_test/drivers/gpio
Andres Salomon 44658a11f3 cs5535-gpio: handle GPIO regs where higher (clear) bits are set
The default for non-READ_BACK GPIO regs is to have the clear bits set;
this means that our original errata fix was too simplistic.  This
changes it to the following behavior:

 - when setting GPIOs, ignore the higher order bits (they're for
   clearing, we don't need to care about them).

 - when clearing GPIOs, keep all the bits, but unset (via XOR) the
   lower order bit that negates the clear bit that we care about.  That
   is, if we're clearing GPIO 26 (val = 0x04000000), we first XOR what's
   currently in the register with 0x0400 (GPIO 26's SET bit), and then
   OR that with the GPIO 26's CLEAR bit.

Tested-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-12-23 15:31:48 -08:00
..
74x164.c
adp5520-gpio.c
adp5588-gpio.c
basic_mmio_gpio.c
bt8xxgpio.c
cs5535-gpio.c cs5535-gpio: handle GPIO regs where higher (clear) bits are set 2010-12-23 15:31:48 -08:00
gpiolib.c
it8761e_gpio.c
janz-ttl.c
Kconfig
langwell_gpio.c
Makefile
max730x.c
max732x.c
max7300.c
max7301.c
mc33880.c
mcp23s08.c
pca953x.c
pcf857x.c
pch_gpio.c
pl061.c
rdc321x-gpio.c
sch_gpio.c
stmpe-gpio.c
sx150x.c
tc35892-gpio.c
timbgpio.c
twl4030-gpio.c
ucb1400_gpio.c
vr41xx_giu.c
vx855_gpio.c
wm831x-gpio.c
wm8350-gpiolib.c
wm8994-gpio.c
xilinx_gpio.c