public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4 v2] DA830: Add pinmux for USB0_DRVVBUS
@ 2009-11-13  6:31 Ajay Kumar Gupta
  2009-11-13  6:31 ` [U-Boot] [PATCH 2/4 v2] DA8xx: Add GPIO register definitions Ajay Kumar Gupta
  0 siblings, 1 reply; 11+ messages in thread
From: Ajay Kumar Gupta @ 2009-11-13  6:31 UTC (permalink / raw)
  To: u-boot

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>
---
Created and tested against latest uboot-ti/master branch.
Changes from v1:
	- Added GPIO definitions
	- Used GPIO register pointer to program GPIO
	- Fixed alignment and tabs
	- Used SYSCONFIG pointer to program USB PHY in chipcfg2 register

 board/davinci/da830evm/da830evm.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/board/davinci/da830evm/da830evm.c b/board/davinci/da830evm/da830evm.c
index bb8cc3c..7cf6013 100644
--- a/board/davinci/da830evm/da830evm.c
+++ b/board/davinci/da830evm/da830evm.c
@@ -65,6 +65,11 @@ const struct pinmux_config i2c_pins[] = {
 	{ pinmux[9], 2, 4 }
 };
 
+/* USB0_DRVVBUS pin muxer settings */
+const struct pinmux_config usb_pins[] = {
+	{ pinmux[9], 1, 1 }
+};
+
 int board_init(void)
 {
 #ifndef CONFIG_USE_IRQ
@@ -118,6 +123,9 @@ int board_init(void)
 	if (davinci_configure_pin_mux(i2c_pins, ARRAY_SIZE(i2c_pins)) != 0)
 		return 1;
 
+	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),
-- 
1.6.2.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-11-18 22:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13  6:31 [U-Boot] [PATCH 1/4 v2] DA830: Add pinmux for USB0_DRVVBUS Ajay Kumar Gupta
2009-11-13  6:31 ` [U-Boot] [PATCH 2/4 v2] DA8xx: Add GPIO register definitions Ajay Kumar Gupta
2009-11-13  6:31   ` [U-Boot] [PATCH 3/4 v2] DA8xx: Add MUSB host support Ajay Kumar Gupta
2009-11-13  6:31     ` [U-Boot] [PATCH 4/4 v2] DA830: Add usb config Ajay Kumar Gupta
2009-11-13 12:05     ` [U-Boot] [PATCH 3/4 v2] DA8xx: Add MUSB host support Paulraj, Sandeep
2009-11-13 12:23       ` Gupta, Ajay Kumar
2009-11-13 14:00       ` Tom
2009-11-17 23:28       ` Wolfgang Denk
2009-11-17 23:37         ` Tom
2009-11-18  0:20           ` Paulraj, Sandeep
2009-11-18 22:26             ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox