libattr: remove libattr because it is clashing with udev/attr and is not used by...
[openembedded.git] / recipes / linux / linux-omap-pm-2.6.28 / usbttyfix.patch
blob997705a31b0bb05f227c02410a818cb814dddcfc
1 To get USB HOST mode working on USB OTG Port with USB TTY enabled U-boot
3 Signed-off-by: Syed Mohammed Khasim <khasim@ti.com>
4 ---
5 --- linux-2.6.git/drivers/usb/musb/omap2430.c 2009-01-19 22:42:18.000000000 +0530
6 +++ linux-2.6.git/drivers/usb/musb/omap2430.c 2009-02-19 12:45:22.000000000 +0530
7 @@ -33,6 +33,7 @@
8 #include <linux/list.h>
9 #include <linux/clk.h>
10 #include <linux/io.h>
11 +#include <linux/i2c/twl4030.h>
13 #include <asm/mach-types.h>
14 #include <mach/hardware.h>
15 @@ -233,6 +234,14 @@ int __init musb_platform_init(struct mus
16 omap_cfg_reg(AE5_2430_USB0HS_STP);
17 #endif
19 + /* Reset MUSB Controller */
20 + omap_writel(SOFTRST,OTG_SYSCONFIG);
22 +#if defined(CONFIG_TWL4030_USB)
23 + /* Reset the TWL USB PHY */
24 + twl4030_i2c_write_u8(TWL4030_MODULE_USB, 0x60, 0x4);
25 +#endif
27 musb->xceiv = *x;
28 musb_platform_resume(musb);