regulator: fan53555: fix up the dcdc is disabled when reboot
authorElaine Zhang <zhangqing@rock-chips.com>
Tue, 16 Aug 2016 10:44:04 +0000 (18:44 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 30 Aug 2016 07:21:02 +0000 (15:21 +0800)
commit4336ef5f14af07f39e736cb337543abc2d7a003f
tree19ad6bf43206b79c9e1dc2e18e4f715602d05654
parente54b749e80b4b7f86e757f7e514a166ee8ea50ae
regulator: fan53555: fix up the dcdc is disabled when reboot

Before reboot if the DCDC is disabled,
the DCDC is still disabled after restart.
We have an method to workaround:
Use vsel pin to switch the voltage between value in FAN53555_VSEL0
and FAN53555_VSEL1. If VSEL pin is inactive, the voltage of DCDC
are controlled by FAN53555_VSEL0, when we pull vsel pin to active,
they would be controlled by FAN53555_VSEL1.
In this case, we can set FAN53555_VSEL1 to disable dcdc,
So we can make vsel pin to active to disable dcdc,
VSEL pin is inactive to enable DCDC.

Change-Id: I14c823ed11dc3369044ad2ed0b53a6027acbccd0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/regulator/fan53555.c
include/linux/regulator/fan53555.h