All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/hydra: Update MDIO mux fixups
@ 2014-11-18  3:11 Chunhe Lan
  2014-12-05 16:39 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Chunhe Lan @ 2014-11-18  3:11 UTC (permalink / raw)
  To: u-boot

The new device trees use a more generic interface for
supporting muxing mdio buses. The mux property is thus
specified in "reg", rather than "fsl,hydra-mdio-muxval".

In order to support using old device trees, we keep the
old fixup in there. Linux will therefore see the both
properties, but will ignore fsl,hydra-mdio-muxval.

Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
---
 board/freescale/corenet_ds/eth_hydra.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/board/freescale/corenet_ds/eth_hydra.c b/board/freescale/corenet_ds/eth_hydra.c
index 35825c4..a934c8c 100644
--- a/board/freescale/corenet_ds/eth_hydra.c
+++ b/board/freescale/corenet_ds/eth_hydra.c
@@ -62,7 +62,7 @@
 
 #ifdef CONFIG_FMAN_ENET
 
-#define BRDCFG1_EMI1_SEL_MASK	0x70
+#define BRDCFG1_EMI1_SEL_MASK	0x78
 #define BRDCFG1_EMI1_SEL_SLOT1	0x10
 #define BRDCFG1_EMI1_SEL_SLOT2	0x20
 #define BRDCFG1_EMI1_SEL_SLOT5	0x30
@@ -202,6 +202,8 @@ static void fdt_set_mdio_mux(void *fdt, const char *alias, u32 mux)
 	if (!path)
 		path = alias;
 
+	do_fixup_by_path(fdt, path, "reg",
+			 &mux, sizeof(mux), 1);
 	do_fixup_by_path(fdt, path, "fsl,hydra-mdio-muxval",
 			 &mux, sizeof(mux), 1);
 }
-- 
1.7.6.5

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

* [U-Boot] [PATCH] powerpc/hydra: Update MDIO mux fixups
  2014-11-18  3:11 [U-Boot] [PATCH] powerpc/hydra: Update MDIO mux fixups Chunhe Lan
@ 2014-12-05 16:39 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-12-05 16:39 UTC (permalink / raw)
  To: u-boot

On 11/17/2014 07:11 PM, Chunhe Lan wrote:
> The new device trees use a more generic interface for
> supporting muxing mdio buses. The mux property is thus
> specified in "reg", rather than "fsl,hydra-mdio-muxval".
> 
> In order to support using old device trees, we keep the
> old fixup in there. Linux will therefore see the both
> properties, but will ignore fsl,hydra-mdio-muxval.
> 
> Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
> ---

Applied to u-boot-mpc85xx, awaiting upstream.

York

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

end of thread, other threads:[~2014-12-05 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18  3:11 [U-Boot] [PATCH] powerpc/hydra: Update MDIO mux fixups Chunhe Lan
2014-12-05 16:39 ` York Sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.