36cef73d1a5bade99a50392aa1785100f877093a
[openwrt.git] / target / linux / omap24xx / patches-3.1 / 597-cbus-tahvo-usb-platform.patch
1 Index: linux-3.1/arch/arm/mach-omap2/board-n8x0.c
2 ===================================================================
3 --- linux-3.1.orig/arch/arm/mach-omap2/board-n8x0.c 2011-10-30 00:48:51.565042059 +0200
4 +++ linux-3.1/arch/arm/mach-omap2/board-n8x0.c 2011-10-30 00:48:54.637039450 +0200
5 @@ -41,6 +41,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 @@ -486,6 +487,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 @@ -507,6 +516,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;
This page took 0.038283 seconds and 3 git commands to generate.