aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-12-15 15:44:34 +0800
committerDaniel Golle <daniel@makrotopia.org>2019-03-05 03:02:34 +0100
commitcea3e9e4383688f00ce5ef76c2b694aeead4c0ac (patch)
tree3521133f1f96ce8d87336ab42664ff8fba632256 /target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
parent596a5325cd7255faa94aa5e13ae97a6ee64f0bd2 (diff)
downloadupstream-cea3e9e4383688f00ce5ef76c2b694aeead4c0ac.tar.gz
upstream-cea3e9e4383688f00ce5ef76c2b694aeead4c0ac.tar.bz2
upstream-cea3e9e4383688f00ce5ef76c2b694aeead4c0ac.zip
ath79: ag71xx: add support for optional mdio reset
On ar933x and later chips, there are separated mac/mdio resets, but resetting the entire gmac block with register values requires both mac_reset and mdio_reset to be asserted together. Add support for optional mdio reset so that we can do a full reset if needed. This patch also replaced deprecated devm_reset_control_get for mac reset. To use this feature, the following is needed: 1. drop "simple-mfd" compatible to register mdio0 after gmac init so that mdio registers aren't reset after initialization. 2. move mdio reset from mdio-bus to its parent eth node. NOTE: This can't be applied on gmac1 with builtin switch since we haven't add a feature to defer probe if phy connection failed. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h')
-rw-r--r--target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
index 9aac1998a8..fde9db3745 100644
--- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
+++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
@@ -188,6 +188,7 @@ struct ag71xx {
struct timer_list oom_timer;
struct reset_control *mac_reset;
+ struct reset_control *mdio_reset;
u32 fifodata[3];
u32 plldata[3];