diff options
author | Ye Li <ye.li@nxp.com> | 2022-07-26 16:41:16 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-07-26 11:29:01 +0200 |
commit | a6acf95508e268d6311408d24339b42fe6e5be14 (patch) | |
tree | 564406c8fcc5d6fca59078969091ea9834d42ea3 /drivers/net/dwc_eth_qos.h | |
parent | 5fc783b5d9c97fe58751faf9d459402ac4a4edde (diff) |
net: eqos: add function to get phy node and address
Since new atheros PHY driver needs to access its PHY node through
phy device, we have to assign the phy node in ethernet controller
driver. Otherwise the PHY driver will fail to get some nodes
and properties.
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/net/dwc_eth_qos.h')
-rw-r--r-- | drivers/net/dwc_eth_qos.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dwc_eth_qos.h b/drivers/net/dwc_eth_qos.h index ce90e1f1ce1..f470189e8d4 100644 --- a/drivers/net/dwc_eth_qos.h +++ b/drivers/net/dwc_eth_qos.h @@ -261,6 +261,7 @@ struct eqos_priv { struct clk clk_slave_bus; struct mii_dev *mii; struct phy_device *phy; + ofnode phy_of_node; u32 max_speed; void *descs; int tx_desc_idx, rx_desc_idx; |