06506941badc8136e6dfb9a80d6cfedbcdece428
[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 19:32:29.896037143 +0100
4 +++ linux-3.1/arch/arm/mach-omap2/board-n8x0.c 2011-10-30 19:32:32.839982394 +0100
5 @@ -41,6 +41,7 @@
6 #include <plat/mmc.h>
7 #include <plat/serial.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.042456 seconds and 3 git commands to generate.