summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorMinghuan Lian <Minghuan.Lian@freescale.com>2014-11-24 18:20:46 +0800
committerYork Sun <yorksun@freescale.com>2014-12-05 08:06:17 -0800
commitaf7219de2c66b64ddae0348b3d3fa5072d800dd2 (patch)
tree3767efa3ceab0bfe05c246fa291203199d616746 /board/freescale
parentb41f126340599f2d779e84bd591a3dbb7b34498b (diff)
downloadu-boot-imx-af7219de2c66b64ddae0348b3d3fa5072d800dd2.zip
u-boot-imx-af7219de2c66b64ddae0348b3d3fa5072d800dd2.tar.gz
u-boot-imx-af7219de2c66b64ddae0348b3d3fa5072d800dd2.tar.bz2
powerpc/hydra: fix judging condition of RGMII selection
BRDCFG1_EMI1_SEL_MASK has been changed to 0x78, which contains selection bits and connected status bit. So the Corresponding mux value of RGMII is changed to BRDCFG1_EMI1_SEL_RGMII | BRDCFG1_EMI1_EN. Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/corenet_ds/eth_hydra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/corenet_ds/eth_hydra.c b/board/freescale/corenet_ds/eth_hydra.c
index a934c8c..396103f 100644
--- a/board/freescale/corenet_ds/eth_hydra.c
+++ b/board/freescale/corenet_ds/eth_hydra.c
@@ -252,11 +252,12 @@ void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
return;
}
- if (mux == BRDCFG1_EMI1_SEL_RGMII) {
+ if (mux == (BRDCFG1_EMI1_SEL_RGMII | BRDCFG1_EMI1_EN)) {
/* RGMII */
/* The RGMII PHY is identified by the MAC connected to it */
sprintf(phy, "phy_rgmii_%u", port == FM1_DTSEC4 ? 0 : 1);
fdt_set_phy_handle(fdt, compat, addr, phy);
+ return;
}
/* If it's not RGMII or XGMII, it must be SGMII */