2011-10-30 06:52:07 +08:00
|
|
|
Index: linux-3.1/arch/arm/mach-omap2/board-n8x0.c
|
2011-10-30 03:02:50 +08:00
|
|
|
===================================================================
|
2011-10-30 06:52:07 +08:00
|
|
|
--- linux-3.1.orig/arch/arm/mach-omap2/board-n8x0.c 2011-10-30 00:48:51.565042059 +0200
|
|
|
|
+++ linux-3.1/arch/arm/mach-omap2/board-n8x0.c 2011-10-30 00:48:54.637039450 +0200
|
2011-10-30 04:35:36 +08:00
|
|
|
@@ -41,6 +41,7 @@
|
2011-10-30 03:02:50 +08:00
|
|
|
#include <plat/serial.h>
|
|
|
|
#include <plat/cbus.h>
|
|
|
|
#include <plat/gpio-switch.h>
|
|
|
|
+#include <plat/usb.h>
|
|
|
|
|
|
|
|
#include "mux.h"
|
|
|
|
|
2011-10-30 04:35:36 +08:00
|
|
|
@@ -486,6 +487,14 @@ static struct musb_hdrc_platform_data tu
|
2011-10-30 03:02:50 +08:00
|
|
|
.config = &musb_config,
|
|
|
|
};
|
|
|
|
|
|
|
|
+static struct omap_usb_config n8x0_omap_usb_config __initdata = {
|
|
|
|
+ .otg = 1,
|
|
|
|
+ .register_host = 1,
|
|
|
|
+ .register_dev = 1,
|
|
|
|
+ .hmc_mode = 16,
|
|
|
|
+ .pins[0] = 6,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
static void __init n8x0_usb_init(void)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
2011-10-30 04:35:36 +08:00
|
|
|
@@ -507,6 +516,8 @@ static void __init n8x0_usb_init(void)
|
2011-10-30 03:02:50 +08:00
|
|
|
if (ret != 0)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
+ omap2_usbfs_init(&n8x0_omap_usb_config);
|
|
|
|
+
|
|
|
|
printk(announce);
|
|
|
|
|
|
|
|
return;
|