summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjay Kumar Gupta <ajay.gupta@ti.com>2010-01-28 18:51:16 +0530
committerAjay Kumar Gupta <ajay.gupta@ti.com>2010-01-28 18:51:16 +0530
commit5118bf91a379c4aece921e677e11d09695c35b8b (patch)
tree94c0312e6ffd2af3b57c5fff89ba548d4d810e6f
parent560556e6ad01eb3b4a29c2ec4d5863f42c87c380 (diff)
DA830: Add pinmux for USB0_DRVVBUS
USB0_DRVVBUS pinmux configuration is required for USB functinality in uboot. Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Swaminathan S <swami.iyer@ti.com>
-rw-r--r--board/davinci/da8xxevm/da830evm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/davinci/da8xxevm/da830evm.c b/board/davinci/da8xxevm/da830evm.c
index ddce94d2f8..052743bbb4 100644
--- a/board/davinci/da8xxevm/da830evm.c
+++ b/board/davinci/da8xxevm/da830evm.c
@@ -130,6 +130,11 @@ const struct pinmux_config aemif_pins[] = {
};
#endif
+/* USB0_DRVVBUS pin muxer settings */
+const struct pinmux_config usb_pins[] = {
+ { pinmux[9], 1, 1 }
+};
+
int board_init(void)
{
#ifndef CONFIG_USE_IRQ
@@ -193,6 +198,9 @@ int board_init(void)
return 1;
#endif
+ if (davinci_configure_pin_mux(usb_pins, ARRAY_SIZE(usb_pins)) != 0)
+ return 1;
+
/* enable the console UART */
writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
DAVINCI_UART_PWREMU_MGMT_UTRST),