diff options
author | Zang Roy-R61911 <tie-fei.zang@freescale.com> | 2013-03-04 03:59:20 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2013-05-02 16:56:44 -0500 |
commit | c5729f0b1fb8777c5dcfd2e510bc351045e9b1c4 (patch) | |
tree | 9f94fc7e3fd0938975c8fbe4c715291d51f40110 /arch | |
parent | 7b700d212532b1b7b11e003d6949407d74fb69e3 (diff) | |
download | u-boot-imx-c5729f0b1fb8777c5dcfd2e510bc351045e9b1c4.zip u-boot-imx-c5729f0b1fb8777c5dcfd2e510bc351045e9b1c4.tar.gz u-boot-imx-c5729f0b1fb8777c5dcfd2e510bc351045e9b1c4.tar.bz2 |
fman/mEMAC: set SETSP bit in IF_MODE regisgter for RGMII speed
Some legacy RGMII phys don't have in band signaling for the
speed information. so set the RGMII MAC mode according to
the speed got from PHY.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Reported-by: John Traill <john.traill@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/fsl_memac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_memac.h b/arch/powerpc/include/asm/fsl_memac.h index d6b60e6..69f95d1 100644 --- a/arch/powerpc/include/asm/fsl_memac.h +++ b/arch/powerpc/include/asm/fsl_memac.h @@ -222,6 +222,10 @@ struct memac { /* IF_MODE - Interface Mode Register */ #define IF_MODE_EN_AUTO 0x00008000 /* 1 - Enable automatic speed selection */ +#define IF_MODE_SETSP_100M 0x00000000 /* 00 - 100Mbps RGMII */ +#define IF_MODE_SETSP_10M 0x00002000 /* 01 - 10Mbps RGMII */ +#define IF_MODE_SETSP_1000M 0x00004000 /* 10 - 1000Mbps RGMII */ +#define IF_MODE_SETSP_MASK 0x00006000 /* setsp mask bits */ #define IF_MODE_XGMII 0x00000000 /* 00- XGMII(10) interface mode */ #define IF_MODE_GMII 0x00000002 /* 10- GMII interface mode */ #define IF_MODE_MASK 0x00000003 /* mask for mode interface mode */ |