public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mpc83xx: add support for switching between USB Host/Function for MPC837XEMDS
@ 2008-10-14 18:13 Anton Vorontsov
  2008-10-14 18:58 ` [U-Boot] [PATCH v2] " Anton Vorontsov
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2008-10-14 18:13 UTC (permalink / raw)
  To: u-boot

With this patch u-boot can fixup the dr_mode and phy_type properties
for the Dual-Role USB controller.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
 board/freescale/mpc837xemds/mpc837xemds.c |    1 +
 include/configs/MPC837XEMDS.h             |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index 8bc54d1..094d0c0 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -314,6 +314,7 @@ void ft_board_setup(void *blob, bd_t *bd)
 {
 	ft_cpu_setup(blob, bd);
 	ft_tsec_fixup(blob, bd);
+	fdt_fixup_dr_usb(blob, bd);
 #ifdef CONFIG_PCI
 	ft_pci_setup(blob, bd);
 	if (board_pci_host_broken())
diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h
index d78aa60..6e4a65c 100644
--- a/include/configs/MPC837XEMDS.h
+++ b/include/configs/MPC837XEMDS.h
@@ -360,6 +360,8 @@ extern int board_pci_host_broken(void);
 #define CONFIG_83XX_GENERIC_PCI	1 /* Use generic PCI setup */
 #define CONFIG_PQ_MDS_PIB	1 /* PQ MDS Platform IO Board */
 
+#define CONFIG_HAS_FSL_DR_USB	1 /* fixup device tree for the DR USB */
+
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP		/* do pci plug-and-play */
 
-- 
1.5.6.3

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

end of thread, other threads:[~2008-10-15  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 18:13 [U-Boot] [PATCH] mpc83xx: add support for switching between USB Host/Function for MPC837XEMDS Anton Vorontsov
2008-10-14 18:58 ` [U-Boot] [PATCH v2] " Anton Vorontsov
2008-10-15  0:17   ` Kim Phillips

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