From 7215c93a7112649d376a203e16e3de7979aa9699 Mon Sep 17 00:00:00 2001 From: Sangwook Lee Date: Wed, 22 Feb 2012 11:03:24 +0000 Subject: [PATCH] USB: ehci-s5p: Enable burst transfer Enable burst transfer from AHB for EHCI. Signed-off-by: Sangwook Lee --- drivers/usb/host/ehci-s5p.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index 293f741..07b433e 100644 --- a/drivers/usb/host/ehci-s5p.c +++ b/drivers/usb/host/ehci-s5p.c @@ -17,6 +17,12 @@ #include #include +#define USB_INSREG00 0x90 +#define ENABLE_INCR16 (1 << 25) +#define ENABLE_INCR8 (1 << 24) +#define ENABLE_INCR4 (1 << 23) +#define ENABLE_INCRX_ALIGN (1 << 22) + struct s5p_ehci_hcd { struct device *dev; struct usb_hcd *hcd; @@ -134,6 +140,11 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev) /* cache this readonly data; minimize chip reads */ ehci->hcs_params = readl(&ehci->caps->hcs_params); +#if defined(CONFIG_ARCH_EXYNOS) + writel(ENABLE_INCR16 | ENABLE_INCR8 | ENABLE_INCR4 | ENABLE_INCRX_ALIGN, + hcd->regs + USB_INSREG00); +#endif + ehci_reset(ehci); err = usb_add_hcd(hcd, irq, IRQF_SHARED); -- 1.7.4.1