* [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
@ 2007-03-06 10:12 Rodolfo Giometti
2007-03-07 10:51 ` Rodolfo Giometti
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Rodolfo Giometti @ 2007-03-06 10:12 UTC (permalink / raw)
To: u-boot
PXA: pxa27x USB OHCI support
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
-------------- next part --------------
diff --git a/README b/README
index 8affdd3..7c1c88e 100644
--- a/README
+++ b/README
@@ -248,6 +248,7 @@ The following options need to be configu
CONFIG_SA1110
CONFIG_ARM7
CONFIG_PXA250
+ CONFIG_PXA27X
CONFIG_CPU_MONAHANS
MicroBlaze based CPUs:
diff --git a/cpu/pxa/usb.c b/cpu/pxa/usb.c
index 5d273cb..4ef3ac7 100644
--- a/cpu/pxa/usb.c
+++ b/cpu/pxa/usb.c
@@ -24,15 +24,21 @@
#include <common.h>
#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
-# ifdef CONFIG_CPU_MONAHANS
+# if defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_PXA27X)
#include <asm/arch/pxa-regs.h>
int usb_cpu_init()
{
+#if defined(CONFIG_CPU_MONAHANS)
/* Enable USB host clock. */
CKENA |= (CKENA_2_USBHOST | CKENA_20_UDC);
udelay(100);
+#endif
+#if defined(CONFIG_PXA27X)
+ /* Enable USB host clock. */
+ CKEN |= CKEN10_USBHOST;
+#endif
/* Configure Port 2 for Host (USB Client Registers) */
UP2OCR = 0x3000c;
@@ -55,7 +61,12 @@ #if 0
UHCHR |= UHCHR_PSPL; /* USBHPWR is active low */
#endif
+#if defined(CONFIG_CPU_MONAHANS)
UHCHR &= ~UHCHR_SSEP0;
+#endif
+#if defined(CONFIG_PXA27X)
+ UHCHR &= ~UHCHR_SSEP2;
+#endif
UHCHR &= ~UHCHR_SSEP1;
UHCHR &= ~UHCHR_SSE;
@@ -74,5 +85,5 @@ int usb_cpu_init_fail()
return 0;
}
-# endif /* CONFIG_CPU_MONAHANS */
+# endif /* defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_PXA27X) */
#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
2007-03-06 10:12 [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support Rodolfo Giometti
@ 2007-03-07 10:51 ` Rodolfo Giometti
2007-04-03 14:01 ` Markus Klotzbücher
2007-03-26 10:32 ` Markus Klotzbücher
2007-04-03 13:59 ` Markus Klotzbücher
2 siblings, 1 reply; 5+ messages in thread
From: Rodolfo Giometti @ 2007-03-07 10:51 UTC (permalink / raw)
To: u-boot
Hello,
I think also that the following settings should be implemented into
platform specific code. That's why my patch:
diff --git a/cpu/pxa/usb.c b/cpu/pxa/usb.c
index 4ef3ac7..cfe82b9 100644
--- a/cpu/pxa/usb.c
+++ b/cpu/pxa/usb.c
@@ -40,9 +40,6 @@ int usb_cpu_init()
CKEN |= CKEN10_USBHOST;
#endif
- /* Configure Port 2 for Host (USB Client Registers) */
- UP2OCR = 0x3000c;
-
#if 0
GPIO2_2 = 0x801; /* USBHPEN - Alt. Fkt. 1 */
GPIO3_2 = 0x801; /* USBHPWR - Alt. Fkt. 1 */
Ciao,
Rodolfo
--
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] 5+ messages in thread* [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
2007-03-07 10:51 ` Rodolfo Giometti
@ 2007-04-03 14:01 ` Markus Klotzbücher
0 siblings, 0 replies; 5+ messages in thread
From: Markus Klotzbücher @ 2007-04-03 14:01 UTC (permalink / raw)
To: u-boot
Dear Rodolfo,
Rodolfo Giometti <giometti@enneenne.com> writes:
> I think also that the following settings should be implemented into
> platform specific code. That's why my patch:
Yes, you're right, I added #defines to make it Monahans specific.
Best regards
Markus
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
2007-03-06 10:12 [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support Rodolfo Giometti
2007-03-07 10:51 ` Rodolfo Giometti
@ 2007-03-26 10:32 ` Markus Klotzbücher
2007-04-03 13:59 ` Markus Klotzbücher
2 siblings, 0 replies; 5+ messages in thread
From: Markus Klotzbücher @ 2007-03-26 10:32 UTC (permalink / raw)
To: u-boot
Hi Peter,
Rodolfo Giometti <giometti@enneenne.com> writes:
> PXA: pxa27x USB OHCI support
I think this patch is more USB than ARM specific. If you agree, I'll
take care it.
Regards
Markus
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
2007-03-06 10:12 [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support Rodolfo Giometti
2007-03-07 10:51 ` Rodolfo Giometti
2007-03-26 10:32 ` Markus Klotzbücher
@ 2007-04-03 13:59 ` Markus Klotzbücher
2 siblings, 0 replies; 5+ messages in thread
From: Markus Klotzbücher @ 2007-04-03 13:59 UTC (permalink / raw)
To: u-boot
Rodolfo Giometti <giometti@enneenne.com> writes:
> PXA: pxa27x USB OHCI support
>
> Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Applied to U-Boot custodian repository, thanks.
Best regards
Markus Klotzbuecher
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-03 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:12 [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support Rodolfo Giometti
2007-03-07 10:51 ` Rodolfo Giometti
2007-04-03 14:01 ` Markus Klotzbücher
2007-03-26 10:32 ` Markus Klotzbücher
2007-04-03 13:59 ` 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