Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289652
b: refs/heads/master
c: 88555a6
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Mar 8, 2012
1 parent 2906942 commit a264b07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30e9eb190f7930bf1edb0ec2d0ce10e300391abd
refs/heads/master: 88555a63caafcc86b93b045dfc26cd7a8fa16350
15 changes: 15 additions & 0 deletions trunk/drivers/usb/host/ehci-s5p.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
#include <plat/ehci.h>
#include <plat/usb-phy.h>

#define EHCI_INSNREG00(base) (base + 0x90)
#define EHCI_INSNREG00_ENA_INCR16 (0x1 << 25)
#define EHCI_INSNREG00_ENA_INCR8 (0x1 << 24)
#define EHCI_INSNREG00_ENA_INCR4 (0x1 << 23)
#define EHCI_INSNREG00_ENA_INCRX_ALIGN (0x1 << 22)
#define EHCI_INSNREG00_ENABLE_DMA_BURST \
(EHCI_INSNREG00_ENA_INCR16 | EHCI_INSNREG00_ENA_INCR8 | \
EHCI_INSNREG00_ENA_INCR4 | EHCI_INSNREG00_ENA_INCRX_ALIGN)

struct s5p_ehci_hcd {
struct device *dev;
struct usb_hcd *hcd;
Expand Down Expand Up @@ -128,6 +137,9 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev)
ehci->regs = hcd->regs +
HC_LENGTH(ehci, readl(&ehci->caps->hc_capbase));

/* DMA burst Enable */
writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));

dbg_hcs_params(ehci, "reset");
dbg_hcc_params(ehci, "reset");

Expand Down Expand Up @@ -234,6 +246,9 @@ static int s5p_ehci_resume(struct device *dev)
if (pdata && pdata->phy_init)
pdata->phy_init(pdev, S5P_USB_PHY_HOST);

/* DMA burst Enable */
writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));

if (time_before(jiffies, ehci->next_statechange))
msleep(100);

Expand Down

0 comments on commit a264b07

Please sign in to comment.