4c15cc3e8f3a5690eb2ee18b4dd7f6c4b55363c8
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 597-cbus-tahvo-usb-platform.patch
1 Index: linux-2.6.38-rc7/arch/arm/mach-omap2/board-n8x0.c
2 ===================================================================
3 --- linux-2.6.38-rc7.orig/arch/arm/mach-omap2/board-n8x0.c 2011-03-09 18:47:07.749508720 +0100
4 +++ linux-2.6.38-rc7/arch/arm/mach-omap2/board-n8x0.c 2011-03-09 18:59:14.355835051 +0100
5 @@ -40,6 +40,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 @@ -395,6 +396,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 @@ -417,6 +426,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.045082 seconds and 3 git commands to generate.