gpio: stmpe: Add STMPE1600 support
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 07:39:15 +0000 (09:39 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Aug 2016 08:25:26 +0000 (09:25 +0100)
commitc6a05a0563efd6cddafe4e8c857cf87d1311e83b
tree034c4579ceecef09ef7e7f788e0007dad8018478
parent6bb9f0d93399cbde14fc6a1532341a14a85d2df4
gpio: stmpe: Add STMPE1600 support

The particularities of this variant are:
- GPIO_XXX_LSB and GPIO_XXX_MSB memory locations are inverted compared
  to other variants.
- There is no Edge detection, Rising Edge and Falling Edge registers.
- IRQ flags are cleared when read, no need to write in Status register.

Signed-off-by: Amelie DELAUNAY <amelie.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/gpio/gpio-stmpe.c