gpio: stmpe: Fix edge and rising/falling edge detection
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 07:39:08 +0000 (09:39 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Aug 2016 08:23:40 +0000 (09:23 +0100)
commit287849cb3814a5077c79a2489bef055c9f5e656c
tree534417dce8ef21700992b2e66d53ca10c1491327
parentc4dd1ba355aae2bc3d1213da6c66c53e3c31e028
gpio: stmpe: Fix edge and rising/falling edge detection

By cross-checking STMPE 610/801/811/1601/2401/2403 datasheets,
it appears that edge detection and rising/falling edge detection
is not supported by all STMPE variant:

           GPIO              GPIO
      Edge detection     rising/falling
                         edge detection
 610 |      X        |         X       |
 801 |               |                 |
 811 |      X        |         X       |
1600 |               |                 |
1601 |      X        |         X       |
1801 |               |         X       |
2401 |      X        |         X       |
2403 |      X        |         X       |

Rework stmpe_dbg_show_one() and stmpe_gpio_irq to correctly
take these cases into account.

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
This page took 0.024488 seconds and 5 git commands to generate.