diff options
author | Koen Kooi <koen@openembedded.org> | 2008-09-10 15:49:01 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-09-10 15:49:01 +0000 |
commit | ee57b4022ac291e79b511854e7d2176ee09d9248 (patch) | |
tree | a95a84874cd79ddb9f17f0f5b17f4a69c13dfd4f /packages/linux/linux-omap/musb-mru-otgfix.diff | |
parent | 81ffc8a27d12a2b657b579ff382fe1baa1f3b1f9 (diff) |
linux omap git: rearrage patches: musb still doesn't work, even with the magic xceiv patch, display is locked at 640x480 due to DPLL misconfig
Diffstat (limited to 'packages/linux/linux-omap/musb-mru-otgfix.diff')
-rw-r--r-- | packages/linux/linux-omap/musb-mru-otgfix.diff | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/linux/linux-omap/musb-mru-otgfix.diff b/packages/linux/linux-omap/musb-mru-otgfix.diff new file mode 100644 index 0000000000..767858b8b1 --- /dev/null +++ b/packages/linux/linux-omap/musb-mru-otgfix.diff @@ -0,0 +1,43 @@ +From: Mans Rullgard <mans@mansr.com> +Date: Sat, 6 Sep 2008 15:11:00 +0000 (+0100) +Subject: usb: musb: fix something +X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=1e5bc41773bb981b3a89bd762becf98c72be5e4c + +usb: musb: fix something + +This makes USB work on the Beagleboard. I don't know why. +--- + +diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c +index e07cad8..4d6ff26 100644 +--- a/drivers/usb/musb/musb_core.c ++++ b/drivers/usb/musb/musb_core.c +@@ -1819,6 +1819,9 @@ allocate_instance(struct device *dev, void __iomem *mbase) + ep->epnum = epnum; + } + ++#ifdef CONFIG_USB_MUSB_OTG ++ otg_set_transceiver(&musb->xceiv); ++#endif + musb->controller = dev; + return musb; + } +diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c +index 9d2dcb1..51af80b 100644 +--- a/drivers/usb/musb/omap2430.c ++++ b/drivers/usb/musb/omap2430.c +@@ -215,12 +215,14 @@ void musb_platform_set_mode(struct musb *musb, u8 musb_mode) + + int __init musb_platform_init(struct musb *musb) + { ++ struct otg_transceiver *xceiv = otg_get_transceiver(); + u32 l; + + #if defined(CONFIG_ARCH_OMAP2430) + omap_cfg_reg(AE5_2430_USB0HS_STP); + #endif + ++ musb->xceiv = *xceiv; + musb_platform_resume(musb); + + l = omap_readl(OTG_SYSCONFIG); |