mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
PXA USB OHCI: "usb stop" implementation.
Some USB keys need to be switched off before loading the kernel otherwise they can remain in an undefined status which prevents them to be correctly recognized by the kernel. Signed-off-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Markus Klotzbuecher <mk@denx.de>
This commit is contained in:
parent
d78791ae91
commit
85ac988e86
1 changed files with 16 additions and 0 deletions
|
@ -89,6 +89,22 @@ int usb_cpu_stop(void)
|
|||
|
||||
int usb_cpu_init_fail(void)
|
||||
{
|
||||
UHCHR |= UHCHR_FHR;
|
||||
udelay(11);
|
||||
UHCHR &= ~UHCHR_FHR;
|
||||
|
||||
UHCCOMS |= 1;
|
||||
udelay(10);
|
||||
|
||||
#if defined(CONFIG_CPU_MONAHANS)
|
||||
UHCHR |= UHCHR_SSEP0;
|
||||
#endif
|
||||
#if defined(CONFIG_PXA27X)
|
||||
UHCHR |= UHCHR_SSEP2;
|
||||
#endif
|
||||
UHCHR |= UHCHR_SSEP1;
|
||||
UHCHR |= UHCHR_SSE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue