From: Rodolfo Giometti <giometti@enneenne.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support
Date: Tue, 6 Mar 2007 11:12:48 +0100 [thread overview]
Message-ID: <20070306101247.GC6726@gundam.enneenne.com> (raw)
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) */
next reply other threads:[~2007-03-06 10:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 10:12 Rodolfo Giometti [this message]
2007-03-07 10:51 ` [U-Boot-Users] [PATCH] PXA27x USB (new) OHCI support 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070306101247.GC6726@gundam.enneenne.com \
--to=giometti@enneenne.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox