mpc83xx: add support for switching between USB Host/Function for MPC837XEMDS
PATCH 1/1 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.
--- board/freescale/mpc837xemds/mpc837xemds.c | 1 + include/configs/MPC837XEMDS.h | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
board/freescale/mpc837xemds/mpc837xemds.c +1 -0
@@ -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 ())
include/configs/MPC837XEMDS.h +2 -0
@@ -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 */
Signature · 1 line
1.5.6.3
PATCH v2 1/1 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.
---
v2:
- Added fdt_support.h include.
board/freescale/mpc837xemds/mpc837xemds.c | 6 ++---- include/configs/MPC837XEMDS.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-)
board/freescale/mpc837xemds/mpc837xemds.c +2 -4
@@ -16,12 +16,9 @@#include <asm/fsl_serdes.h> #include <spd_sdram.h> #include <tsec.h> -#if defined(CONFIG_OF_LIBFDT )#include <libfdt.h> -#endif -#if defined(CONFIG_PQ_MDS_PIB ) +#include <fdt_support.h> #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 ())
include/configs/MPC837XEMDS.h +2 -0
@@ -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 */
Signature · 1 line
1.5.6.3
Kim Phillips
AppliedPATCH v2 1/1 mpc83xx: add support for switching between USB Host/Function for MPC837XEMDS
Quoted 7 lines · On Tue, 14 Oct 2008 22:58:53 +0400 Anton Vorontsov <[email protected]>…
With this patch u-boot can fixup the
dr_modeandphy_typeproperties for the Dual-Role USB controller.While at it, also remove #ifdefs around includes, they are not needed.
Signed-off-by Anton Vorontsov <[email protected]>---
applied to mpc83xx/next.
Thanks,
Kim