acc3ba34e071f8b1df08238dbd262d0a2d9e5a01
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 597-cbus-tahvo-usb-platform.patch
1 --- a/arch/arm/mach-omap2/board-n8x0.c
2 +++ b/arch/arm/mach-omap2/board-n8x0.c
3 @@ -40,6 +40,7 @@
4  #include <plat/serial.h>
5  #include <plat/cbus.h>
6  #include <plat/gpio-switch.h>
7 +#include <plat/usb.h>
8  
9  #include "mux.h"
10  
11 @@ -395,6 +396,14 @@ static struct musb_hdrc_platform_data tu
12         .config         = &musb_config,
13  };
14  
15 +static struct omap_usb_config n8x0_omap_usb_config __initdata = {
16 +       .otg            = 1,
17 +       .register_host  = 1,
18 +       .register_dev   = 1,
19 +       .hmc_mode       = 16,
20 +       .pins[0]        = 6,
21 +};
22 +
23  static void __init n8x0_usb_init(void)
24  {
25         int ret = 0;
26 @@ -417,6 +426,8 @@ static void __init n8x0_usb_init(void)
27         if (ret != 0)
28                 goto err;
29  
30 +       omap2_usbfs_init(&n8x0_omap_usb_config);
31 +
32         printk(announce);
33  
34         return;