omap24xx: Add 3.1 patchset.
[openwrt/svn-archive/archive.git] / target / linux / omap24xx / patches-3.1 / 597-cbus-tahvo-usb-platform.patch
1 Index: linux-3.1-rc4/arch/arm/mach-omap2/board-n8x0.c
2 ===================================================================
3 --- linux-3.1-rc4.orig/arch/arm/mach-omap2/board-n8x0.c 2011-10-29 20:11:19.364504806 +0200
4 +++ linux-3.1-rc4/arch/arm/mach-omap2/board-n8x0.c 2011-10-29 20:12:11.508370280 +0200
5 @@ -38,6 +38,7 @@
6 #include <plat/serial.h>
7 #include <plat/cbus.h>
8 #include <plat/gpio-switch.h>
9 +#include <plat/usb.h>
10
11 #include "mux.h"
12
13 @@ -384,6 +385,14 @@ static struct musb_hdrc_platform_data tu
14 .config = &musb_config,
15 };
16
17 +static struct omap_usb_config n8x0_omap_usb_config __initdata = {
18 + .otg = 1,
19 + .register_host = 1,
20 + .register_dev = 1,
21 + .hmc_mode = 16,
22 + .pins[0] = 6,
23 +};
24 +
25 static void __init n8x0_usb_init(void)
26 {
27 int ret = 0;
28 @@ -405,6 +414,8 @@ static void __init n8x0_usb_init(void)
29 if (ret != 0)
30 goto err;
31
32 + omap2_usbfs_init(&n8x0_omap_usb_config);
33 +
34 printk(announce);
35
36 return;