Commit 35a78f54 authored by David Collins's avatar David Collins
Browse files

msm: board-8960: Wrap PMIC 8921 GPIO 42 in a gpio-regulator device



Wrap PMIC 8921 GPIO 42 in a gpio-regulator device so that the USB
OTG driver can be simplified.  GPIO 42 represents the OTG_CNTL
signal on 8960 devices.  This drives a FET which switches the USB
OTG MVS output of the PMIC 8921.  By controlling GPIO 42 with a
gpio-regulator, it is possible to encapsulate all USB OTG 5V
output dependencies within a single regulator_enable call. The
regulator framework is able to automatically set all GPIOs and
PMIC regulators appropriately thanks to the supply chain that
is defined for the regulators.

Change-Id: I8cd26b56a3a2871e784227b5d49f5d1089b19784
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 671f5ce6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment