* [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation.
@ 2007-10-15 9:59 Rodolfo Giometti
2007-10-15 11:00 ` Wolfgang Denk
2007-10-31 9:27 ` Markus Klotzbücher
0 siblings, 2 replies; 3+ messages in thread
From: Rodolfo Giometti @ 2007-10-15 9:59 UTC (permalink / raw)
To: u-boot
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>
---
cpu/pxa/usb.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/cpu/pxa/usb.c b/cpu/pxa/usb.c
index 65f457f..3c11d4d 100644
--- a/cpu/pxa/usb.c
+++ b/cpu/pxa/usb.c
@@ -67,6 +67,22 @@ int usb_cpu_init()
int usb_cpu_stop()
{
+ 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;
}
--
1.5.2.5
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation.
2007-10-15 9:59 [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation Rodolfo Giometti
@ 2007-10-15 11:00 ` Wolfgang Denk
2007-10-31 9:27 ` Markus Klotzbücher
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2007-10-15 11:00 UTC (permalink / raw)
To: u-boot
In message <20071015095916.GA19514@enneenne.com> you wrote:
> 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>
After discussing this with Markus (USB custodian) I merged this.
Thanks!
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The amount of time between slipping on the peel and landing on the
pavement is precisely 1 bananosecond.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation.
2007-10-15 9:59 [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation Rodolfo Giometti
2007-10-15 11:00 ` Wolfgang Denk
@ 2007-10-31 9:27 ` Markus Klotzbücher
1 sibling, 0 replies; 3+ messages in thread
From: Markus Klotzbücher @ 2007-10-31 9:27 UTC (permalink / raw)
To: u-boot
Rodolfo Giometti <giometti@enneenne.com> writes:
> 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>
Thanks, added to USB custodian repo.
Best regards
Markus Klotzbuecher
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-31 9:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 9:59 [U-Boot-Users] [PATCH] PXA USB OHCI: "usb stop" implementation Rodolfo Giometti
2007-10-15 11:00 ` Wolfgang Denk
2007-10-31 9:27 ` Markus Klotzbücher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox