aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2015-03-05 19:13:09 -0800
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2015-03-19 18:39:47 -0700
commit4ce461f93cfcf3fff5e17f860bc195546506478b (patch)
tree90c01135330abf72981d02b431aee7f3843fcbe0 /scripts/gcc-wrapper.py
parent992358336d47fe9eac44cb530c8b38f17ac76bfb (diff)
power: smb135x-charger: fix USB type detection
Most of the platforms have D+/D- lines routed to USB PHY and the charger. And almost all the PHYs pull down the D+/D- lines unless it is set to active mode. This grounding causes issues with source detection and results in detecting SDP even when it is not. Fix this by setting ALLOW_DETECTION property to inform the PHY to remove the pull downs. Once done, rerun APSD and inform of the correct results via the TYPE and PRESENT property. The reruns are necessary only if an SDP is detected. To rerun APSD use this following procedure 1. Disable APSD 2. Set the allowable USB voltage to 9V. 3. Enable APSD 4. Set the allowable USB voltage to 5V-9V. Step 4 causes APSD to run again and issue a src_detect interrupt. Change-Id: I756bb34704be0fb5b85bcde74d22e8953f1c0ca2 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions