Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112471
b: refs/heads/master
c: 0cb0b0d
h: refs/heads/master
i:
  112469: 3064ce6
  112467: cfb8929
  112463: 4315525
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Oct 7, 2008
1 parent 60c3749 commit 98a6a7c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 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: 84bab7393b0da5086e133b7f333b800d26f7166b
refs/heads/master: 0cb0b0d3c6ebb8215500685a1f70a45bbbdc8e47
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-pxa/pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
#include "devices.h"
#include "clock.h"

void pxa27x_clear_otgph(void)
{
if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH))
PSSR |= PSSR_OTGPH;
}
EXPORT_SYMBOL(pxa27x_clear_otgph);

/* Crystal clock: 13MHz */
#define BASE_CLK 13000000

Expand Down
11 changes: 7 additions & 4 deletions trunk/drivers/usb/host/ohci-pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/clk.h>

#include <mach/hardware.h>
#include <mach/pxa2xx-regs.h> /* FIXME: for PSSR */
#include <mach/ohci.h>

/*
Expand Down Expand Up @@ -182,6 +181,12 @@ static inline void pxa27x_setup_hc(struct pxaohci_platform_data *inf)
UHCRHDA = uhcrhda;
}

#ifdef CONFIG_CPU_PXA27x
extern void pxa27x_clear_otgph(void);
#else
#define pxa27x_clear_otgph() do {} while (0)
#endif

static int pxa27x_start_hc(struct device *dev)
{
int retval = 0;
Expand Down Expand Up @@ -212,9 +217,7 @@ static int pxa27x_start_hc(struct device *dev)
UHCHIE = (UHCHIE_UPRIE | UHCHIE_RWIE);

/* Clear any OTG Pin Hold */
if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH))
PSSR |= PSSR_OTGPH;

pxa27x_clear_otgph();
return 0;
}

Expand Down

0 comments on commit 98a6a7c

Please sign in to comment.