Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172603
b: refs/heads/master
c: edaa64c
h: refs/heads/master
i:
  172601: 6273485
  172599: 74bbfcd
v: v3
  • Loading branch information
Igor Grinberg authored and Eric Miao committed Dec 1, 2009
1 parent 6118f37 commit 8d95f08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: def8252ddb9bc52434b2ac1d560a609c61849638
refs/heads/master: edaa64c906f1e977396d0bd868079ee632583149
13 changes: 12 additions & 1 deletion trunk/arch/arm/mach-pxa/cm-x300.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <asm/setup.h>

#include <mach/pxa300.h>
#include <mach/pxa27x-udc.h>
#include <mach/pxafb.h>
#include <mach/mmc.h>
#include <mach/ohci.h>
Expand Down Expand Up @@ -437,9 +438,19 @@ static inline void cm_x300_init_mmc(void) {}
#endif

#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
static int cm_x300_ohci_init(struct device *dev)
{
if (cpu_is_pxa300())
UP2OCR = UP2OCR_HXS
| UP2OCR_HXOE | UP2OCR_DMPDE | UP2OCR_DPPDE;

return 0;
}

static struct pxaohci_platform_data cm_x300_ohci_platform_data = {
.port_mode = PMM_PERPORT_MODE,
.flags = ENABLE_PORT1 | ENABLE_PORT2 | POWER_CONTROL_LOW,
.flags = ENABLE_PORT_ALL | POWER_CONTROL_LOW,
.init = cm_x300_ohci_init,
};

static void __init cm_x300_init_ohci(void)
Expand Down

0 comments on commit 8d95f08

Please sign in to comment.