diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-v2012.04.01/0023-USB-ehci-mx6-Fix-broken-IO-access.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-v2012.04.01/0023-USB-ehci-mx6-Fix-broken-IO-access.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-v2012.04.01/0023-USB-ehci-mx6-Fix-broken-IO-access.patch b/recipes-bsp/u-boot/u-boot-v2012.04.01/0023-USB-ehci-mx6-Fix-broken-IO-access.patch new file mode 100644 index 0000000..3617608 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-v2012.04.01/0023-USB-ehci-mx6-Fix-broken-IO-access.patch @@ -0,0 +1,42 @@ +From 50b03cd90c32aced81d62f9b1c5385dd0bd7173d Mon Sep 17 00:00:00 2001 +From: Wolfgang Grandegger <wg@denx.de> +Date: Wed, 2 May 2012 04:36:39 +0000 +Subject: [PATCH 23/56] USB: ehci-mx6: Fix broken IO access + +To get USB working again on the i.MX6, this patch fixes a bug introduced +with commit 522b2a0 "Add proper IO accessors for mx6 usb registers.". +At that occasion, I also added the missing __iomem directive. + +Cc: Marek Vasut <marex@denx.de> +CC: Fabio Estevam <festevam@gmail.com> +Signed-off-by: Wolfgang Grandegger <wg@denx.de> +--- + drivers/usb/host/ehci-mx6.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c +index 5dec673..42c77fe 100644 +--- a/drivers/usb/host/ehci-mx6.c ++++ b/drivers/usb/host/ehci-mx6.c +@@ -73,7 +73,8 @@ static void usbh1_internal_phy_clock_gate(int on) + + static void usbh1_power_config(void) + { +- struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; ++ struct anatop_regs __iomem *anatop = ++ (struct anatop_regs __iomem *)ANATOP_BASE_ADDR; + /* + * Some phy and power's special controls for host1 + * 1. The external charger detector needs to be disabled +@@ -87,7 +88,7 @@ static void usbh1_power_config(void) + &anatop->usb2_chrg_detect); + + __raw_writel(ANADIG_USB2_PLL_480_CTRL_BYPASS, +- &anatop->usb2_pll_480_ctrl); ++ &anatop->usb2_pll_480_ctrl_clr); + + __raw_writel(ANADIG_USB2_PLL_480_CTRL_ENABLE | + ANADIG_USB2_PLL_480_CTRL_POWER | +-- +1.7.10 + |