diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-11-13 11:26:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-11-13 11:26:59 +0000 |
commit | 538a9493b96682d55cb024eeec237b6cd25be3af (patch) | |
tree | 8335126d23a5488e95ff6a675410aa0c5b38a06d /target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | |
parent | 93cd46be133c90531a201eab9dca9c093a47feff (diff) | |
download | mtk-20170518-538a9493b96682d55cb024eeec237b6cd25be3af.zip mtk-20170518-538a9493b96682d55cb024eeec237b6cd25be3af.tar.gz mtk-20170518-538a9493b96682d55cb024eeec237b6cd25be3af.tar.bz2 |
ar71xx: set MII interface speed from the set_speed callbacks
SVN-Revision: 29013
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h index c447e3e..db5bac7 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h @@ -817,6 +817,11 @@ void ar71xx_flash_release(void); #define MII_REG_MII1_CTRL 0x04 #define MII_CTRL_IF_MASK 3 +#define MII_CTRL_SPEED_SHIFT 4 +#define MII_CTRL_SPEED_MASK 3 +#define MII_CTRL_SPEED_10 0 +#define MII_CTRL_SPEED_100 1 +#define MII_CTRL_SPEED_1000 2 #define MII0_CTRL_IF_GMII 0 #define MII0_CTRL_IF_MII 1 |