mfd: fusb302: add gpio control vbus discharge
authorBin Yang <yangbin@rock-chips.com>
Wed, 4 Jan 2017 00:55:26 +0000 (08:55 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 6 Jan 2017 06:37:44 +0000 (14:37 +0800)
commit121db2e38e0f9bc735ba1d415d4cbff0c9524a7c
tree7e60bd1d0d72c5f5d1798732739f12920a7ec29f
parent68042b063485e03621a2b02478e22e14e08924c0
mfd: fusb302: add gpio control vbus discharge

When type-c vbus output power down or disconnect charging input, the
type-c vbus voltage discharge to 0V take a long time, during this time
residual voltage would affect charge circuit in some platforms(e.g.
rk3399-tve1205g board). So we need add fast discharge circuit, then use
a gpio control it.

Change-Id: I4c8eebc0cf10c6c38c7db9d9d5c71c4f6769e7fc
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
drivers/mfd/fusb302.c
drivers/mfd/fusb302.h