summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-12-20 12:42:31 +0100
committerPhilippe Langlais <philippe.langlais@linaro.org>2011-12-20 12:42:31 +0100
commitea107a93f66d4ea9bd1ccdded21e0d755ec76830 (patch)
treef9b5ce7f1f1fc5c59e10dd7bc6d791d9a3aea6a0
parentefa5a84a5c9c93f8ae84ab2196e2af8d7b382a31 (diff)
Revert "mach-ux500: musb: Now musb is always in OTG mode"
This reverts commit ac28162fc038d50e64ff2e81d64046be22533e0f.
-rw-r--r--arch/arm/mach-ux500/usb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/usb.c b/arch/arm/mach-ux500/usb.c
index 1e7c0cc912e..363282eae61 100644
--- a/arch/arm/mach-ux500/usb.c
+++ b/arch/arm/mach-ux500/usb.c
@@ -105,7 +105,13 @@ static struct musb_hdrc_config musb_hdrc_config = {
};
static struct musb_hdrc_platform_data musb_platform_data = {
+#if defined(CONFIG_USB_MUSB_OTG)
.mode = MUSB_OTG,
+#elif defined(CONFIG_USB_MUSB_PERIPHERAL)
+ .mode = MUSB_PERIPHERAL,
+#else /* defined(CONFIG_USB_MUSB_HOST) */
+ .mode = MUSB_HOST,
+#endif
.config = &musb_hdrc_config,
.board_data = &musb_board_data,
};