diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2014-08-13 18:38:09 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-11-14 11:12:13 -0800 |
commit | ae6b45830637f7540d0c06280c886bfcb295d27b (patch) | |
tree | 1ce1dbe06b3f130ae6b2c56edb327874d3a1d40b /arch/powerpc | |
parent | ff5fb2a36dff8a92d6483359167a6b1525359eaf (diff) | |
download | u-boot-imx-ae6b45830637f7540d0c06280c886bfcb295d27b.zip u-boot-imx-ae6b45830637f7540d0c06280c886bfcb295d27b.tar.gz u-boot-imx-ae6b45830637f7540d0c06280c886bfcb295d27b.tar.bz2 |
driver/net/fm/memac_phy: set NEG bit for external MDIOs
NEG bit default is '1' for external MDIOs as per FMAN-v3 RM, but on some
platforms, e.g. T2080QDS, this bit is '0', which leads to MDIO failure
on XAUI PHY, so set this bit definitely to align with the RM.
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/fsl_memac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_memac.h b/arch/powerpc/include/asm/fsl_memac.h index f84c1a9..bed2a40 100644 --- a/arch/powerpc/include/asm/fsl_memac.h +++ b/arch/powerpc/include/asm/fsl_memac.h @@ -244,6 +244,7 @@ struct memac_mdio_controller { #define MDIO_STAT_PRE (1 << 5) #define MDIO_STAT_ENC (1 << 6) #define MDIO_STAT_HOLD_15_CLK (7 << 2) +#define MDIO_STAT_NEG (1 << 23) #define MDIO_CTL_DEV_ADDR(x) (x & 0x1f) #define MDIO_CTL_PORT_ADDR(x) ((x & 0x1f) << 5) |