diff options
author | Jeff Lance <j-lance1@ti.com> | 2014-09-04 19:01:57 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 08:24:03 +0100 |
commit | f0933a60d1902c918249d11fb6d9a5ffd581ef5b (patch) | |
tree | bc1c00cebd3567639cc62f0d6ec6d0e5e97b494e /include/linux | |
parent | 92b8f3abb8c30c15fc79a79ddd1ffab135fc0360 (diff) | |
download | blackbird-op-linux-f0933a60d1902c918249d11fb6d9a5ffd581ef5b.tar.gz blackbird-op-linux-f0933a60d1902c918249d11fb6d9a5ffd581ef5b.zip |
mfd: ti_am335x_tscadc: Update logic in CTRL register for 5-wire TS
The logic in AFE_Pen_Ctrl bitmask in the CTRL register is different for five
wire versus four or eight wire touschscreens. This patch should fix this for
five-wire touch screens. There should be no change needed here for four and
eight wire tousch screens.
Signed-off-by: Jeff Lance <j-lance1@ti.com>
[bigeasy: keep the change mfd only]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/ti_am335x_tscadc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h index fb96c84dada5..e2e70053470e 100644 --- a/include/linux/mfd/ti_am335x_tscadc.h +++ b/include/linux/mfd/ti_am335x_tscadc.h @@ -155,6 +155,7 @@ struct ti_tscadc_dev { void __iomem *tscadc_base; int irq; int used_cells; /* 1-2 */ + int tsc_wires; int tsc_cell; /* -1 if not used */ int adc_cell; /* -1 if not used */ struct mfd_cell cells[TSCADC_CELLS]; |