msm: board-8960: Support PMIC USB OTG switch over current protection
The software regulator supply chain has previously been set up to
match what is physically present on the board. However, it is
necessary to modify the software supply ordering so that switches
are closed in the correct order.
Change the regulator supply chain topology from:
ext_5v -> 8921_usb_otg -> ext_otg_sw
to:
ext_5v -> ext_otg_sw -> 8921_usb_otg
This will ensure that the external OTG FET will be enabled before
the PMIC USB OTG switch. This ensures that the PMIC USB OTG
switch is loaded as soon as it is enabled. In this way, the OCP
enable time delay works as expected to wait for inrush current to
subside.
Also disable the USB OTG switch pull down to remove a possible
source of leakage current.
Change-Id: Ic583c824db44140445c5d1a4fd844d9dc3b48854
Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8960.c b/arch/arm/mach-msm/board-8960.c
index d628eeb..c5614b1 100644
--- a/arch/arm/mach-msm/board-8960.c
+++ b/arch/arm/mach-msm/board-8960.c
@@ -1767,8 +1767,8 @@
&msm_device_saw_core0,
&msm_device_saw_core1,
&msm8960_device_ext_5v_vreg,
- &msm8960_device_ssbi_pmic,
&msm8960_device_ext_otg_sw_vreg,
+ &msm8960_device_ssbi_pmic,
&msm8960_device_qup_spi_gsbi1,
&msm8960_device_qup_i2c_gsbi3,
&msm8960_device_qup_i2c_gsbi4,