aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/ti-common/keystone_net.h
diff options
context:
space:
mode:
authorGrygorii Strashko2018-10-31 16:21:45 -0500
committerJoe Hershberger2018-11-05 10:42:01 -0600
commit79d8127168e211f4745bd2183a3338c6c4e2d003 (patch)
tree14bd35ecfad5852cc7dead96a75adf9821e4fc90 /arch/arm/include/asm/ti-common/keystone_net.h
parent4f41cd9a95c01c276c2d2ecbe0c78d722fe2e9ef (diff)
driver: net: ti: keystone_net: switch to use common mdio lib
Update TI Keystone 2 driver to re-use common mdio lib. Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'arch/arm/include/asm/ti-common/keystone_net.h')
-rw-r--r--arch/arm/include/asm/ti-common/keystone_net.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/include/asm/ti-common/keystone_net.h b/arch/arm/include/asm/ti-common/keystone_net.h
index bef1867f63e..bba1048499b 100644
--- a/arch/arm/include/asm/ti-common/keystone_net.h
+++ b/arch/arm/include/asm/ti-common/keystone_net.h
@@ -57,19 +57,6 @@
/* MDIO clock output frequency */
#define EMAC_MDIO_CLOCK_FREQ 2500000 /* 2.5 MHz */
-/* MII Status Register */
-#define MII_STATUS_REG 1
-#define MII_STATUS_LINK_MASK 0x4
-
-#define MDIO_CONTROL_IDLE 0x80000000
-#define MDIO_CONTROL_ENABLE 0x40000000
-#define MDIO_CONTROL_FAULT_ENABLE 0x40000
-#define MDIO_CONTROL_FAULT 0x80000
-#define MDIO_USERACCESS0_GO 0x80000000
-#define MDIO_USERACCESS0_WRITE_READ 0x0
-#define MDIO_USERACCESS0_WRITE_WRITE 0x40000000
-#define MDIO_USERACCESS0_ACK 0x20000000
-
#define EMAC_MACCONTROL_MIIEN_ENABLE 0x20
#define EMAC_MACCONTROL_FULLDUPLEX_ENABLE 0x1
#define EMAC_MACCONTROL_GIGABIT_ENABLE BIT(7)