From 3bf1be3c0cfb1129b68cc1474119e5f323536488 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Tue, 14 Oct 2008 22:58:53 +0400 Subject: mpc83xx: add support for switching between USB Host/Function for MPC837XEMDS With this patch u-boot can fixup the dr_mode and phy_type properties for the Dual-Role USB controller. While at it, also remove #ifdefs around includes, they are not needed. Signed-off-by: Anton Vorontsov Signed-off-by: Kim Phillips --- board/freescale/mpc837xemds/mpc837xemds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'board/freescale/mpc837xemds') diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c index 49afa7c..acf8ada 100644 --- a/board/freescale/mpc837xemds/mpc837xemds.c +++ b/board/freescale/mpc837xemds/mpc837xemds.c @@ -16,12 +16,9 @@ #include #include #include -#if defined(CONFIG_OF_LIBFDT) #include -#endif -#if defined(CONFIG_PQ_MDS_PIB) +#include #include "../common/pq-mds-pib.h" -#endif int board_early_init_f(void) { @@ -314,6 +311,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()) -- cgit v1.1