mfd: stmpe: Add reset support for all STMPE variant
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 07:39:07 +0000 (09:39 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Aug 2016 08:23:33 +0000 (09:23 +0100)
commitc4dd1ba355aae2bc3d1213da6c66c53e3c31e028
tree5d6175b5371a9010f5736c5c5ed84f95548f60cc
parent0f4be8cf637ea4637faba8a0e4bf2270287c6ba0
mfd: stmpe: Add reset support for all STMPE variant

Reset was only implemented for STMPE1801 variant despite
all variant have a SOFT_RESET bit.

For STMPE2401/2403/801/1601/1801 SOFT_RESET bit is bit 7
of SYS_CTRL register.
For STMPE610/811 (which have the same variant id) SOFT_RESET
bit is bit 1 of SYS_CTRL register.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stmpe.c
drivers/mfd/stmpe.h