mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
tegra: usb: Fix device enumeration problem of USB1
A known hardware issue of USB1 port where bit 1 (connect status change) of PORTSC register will be set after issuing Port Reset (like "usb reset" in u-boot command line). This will be treated as an error and stops later device enumeration. Therefore we clear that bit after Port Reset in order to proceed later device enumeration. Signed-off-by: Jim Lin <jilin@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
committed by
Albert ARIBAUD (U-Boot)
parent
2db7b95284
commit
8b3f7bf7ec
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009 NVIDIA Corporation
|
||||
* Copyright (c) 2009-2012 NVIDIA Corporation
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
@@ -29,6 +29,22 @@
|
||||
#include <asm/errno.h>
|
||||
#include <asm/arch/usb.h>
|
||||
|
||||
/*
|
||||
* A known hardware issue where Connect Status Change bit of PORTSC register
|
||||
* of USB1 controller will be set after Port Reset.
|
||||
* We have to clear it in order for later device enumeration to proceed.
|
||||
* This ehci_powerup_fixup overrides the weak function ehci_powerup_fixup
|
||||
* in "ehci-hcd.c".
|
||||
*/
|
||||
void ehci_powerup_fixup(uint32_t *status_reg, uint32_t *reg)
|
||||
{
|
||||
mdelay(50);
|
||||
if (((u32) status_reg & TEGRA_USB_ADDR_MASK) != TEGRA_USB1_BASE)
|
||||
return;
|
||||
/* For EHCI_PS_CSC to be cleared in ehci_hcd.c */
|
||||
if (ehci_readl(status_reg) & EHCI_PS_CSC)
|
||||
*reg |= EHCI_PS_CSC;
|
||||
}
|
||||
|
||||
/*
|
||||
* Create the appropriate control structures to manage
|
||||
|
||||
Reference in New Issue
Block a user