2011-11-13 10:48:05 +00:00
|
|
|
--- a/arch/arm/mach-omap2/board-n8x0.c
|
|
|
|
+++ b/arch/arm/mach-omap2/board-n8x0.c
|
2011-10-29 20:35:36 +00:00
|
|
|
@@ -41,6 +41,7 @@
|
2011-10-30 18:46:45 +00:00
|
|
|
#include <plat/mmc.h>
|
2011-10-29 19:02:50 +00:00
|
|
|
#include <plat/serial.h>
|
|
|
|
#include <plat/gpio-switch.h>
|
|
|
|
+#include <plat/usb.h>
|
|
|
|
|
|
|
|
#include "mux.h"
|
|
|
|
|
2011-10-29 20:35:36 +00:00
|
|
|
@@ -486,6 +487,14 @@ static struct musb_hdrc_platform_data tu
|
2011-10-29 19:02:50 +00: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-29 20:35:36 +00:00
|
|
|
@@ -507,6 +516,8 @@ static void __init n8x0_usb_init(void)
|
2011-10-29 19:02:50 +00:00
|
|
|
if (ret != 0)
|
|
|
|
goto err;
|
|
|
|
|
|
|
|
+ omap2_usbfs_init(&n8x0_omap_usb_config);
|
|
|
|
+
|
|
|
|
printk(announce);
|
|
|
|
|
|
|
|
return;
|