public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mpc83xx: add support for switching between USB	Host/Function for MPC837XEMDS
Date: Tue, 14 Oct 2008 22:58:53 +0400	[thread overview]
Message-ID: <20081014185853.GA13936@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20081014181346.GA27528@oksana.dev.rtsoft.ru>

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 <avorontsov@ru.mvista.com>
---

v2:
- Added fdt_support.h include.

 board/freescale/mpc837xemds/mpc837xemds.c |    6 ++----
 include/configs/MPC837XEMDS.h             |    2 ++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index 8bc54d1..72601b9 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -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())
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

  reply	other threads:[~2008-10-14 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Anton Vorontsov [this message]
2008-10-15  0:17   ` [U-Boot] [PATCH v2] " Kim Phillips

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081014185853.GA13936@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox