Current de-assert reset is not sufficient for the USB PHY reset
on some Canyonlands platforms. The patch adds an assert/de-assert
sequence. This addresses a USB detection problem for devices
attached prior to power-up. The delay lengths are needed for
power to the PHY to stabilize.

Signed-off-by: Jeff Mann <[email protected]>
Signed-off-by: Dave Mitchell <[email protected]>
Acked-by: Tirumala Reddy Marri <[email protected]>
---
 board/amcc/canyonlands/canyonlands.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/board/amcc/canyonlands/canyonlands.c 
b/board/amcc/canyonlands/canyonlands.c
index 13a0dac..bef12ae 100644
--- a/board/amcc/canyonlands/canyonlands.c
+++ b/board/amcc/canyonlands/canyonlands.c
@@ -177,8 +177,11 @@ int board_early_init_f(void)
        /* Remove NOR-FLASH, NAND-FLASH & EEPROM hardware write protection */
        out_8((void *)CONFIG_SYS_BCSR_BASE + 5, 0);
 
-       /* Enable USB host & USB-OTG */
+       /* Enable USB host & USB-OTG;force assert,then de-assert PHY reset */
+       out_8((void *)CONFIG_SYS_BCSR_BASE + 7, 1);
+       mdelay(100);
        out_8((void *)CONFIG_SYS_BCSR_BASE + 7, 0);
+       mdealy(100);
 
        mtsdr(SDR0_SRST1, 0);   /* Pull AHB out of reset default=1 */
 
-- 
1.6.3.2

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to