]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00212232-01 USB:fix otg can not work without phy power if VBUS removed
authormake shi <b15407@freescale.com>
Mon, 4 Jun 2012 08:24:01 +0000 (16:24 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:47 +0000 (08:34 +0200)
commiteb2522d03a770489e08939476333eda02d2cc407
treeadbb2826a454fe5d4892cdad69b47b3a2cb44a63
parentb5f991e431c0a2747b5b64d29d191d28aab92de3
ENGR00212232-01 USB:fix otg can not work without phy power if VBUS removed

According to ticket TKT094250 :There is no VBUS supply or not supply for USB
PHY power 3p0,USB dp/dm is floating when there is no connection in device mode:
S/W can run the following flow to ensure the internal DP/DM linestate does not
change. These should be done before set SUSP/PHCD bit after detecting the VBUS
change from high to low.
clear HW_USBPHY_DEBUG_CLKGATE
loopback_utmi_dig_tst1 = 1
loopback_utmi_dig_tst0 = 0
loopback_tsti_tx_en = 1
loopback_tsti_tx_hiz = 0
loopback_tsti_tx_hs_mode = 0;

After detecting the VBUS or ID change (connected to a host or device), SW do:
set HW_USBPHY_DEBUG_CLKGATE back to 1
clear the loopback_XXXX signals above back to 0

Signed-off-by: make shi <b15407@freescale.com>
arch/arm/mach-mx6/usb_dr.c