Searched hist:"7965 f3d3316c67bf36bb684cb482c1f2c0c8d5da" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/include/ |
| H A D | phy.h | 7965f3d3316c67bf36bb684cb482c1f2c0c8d5da Fri Feb 08 17:25:06 UTC 2019 Carlo Caione <ccaione@baylibre.com> UPSTREAM: net: phy: Add generic helpers to access MMD PHY registers
Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added to allow access to the MMD PHY registers.
The MMD PHY registers can be accessed by several means:
1. Using two new MMD access function hooks in the PHY driver. These functions can be implemented when the PHY driver does not support the standard IEEE Compatible clause 45 access mechanism described in clause 22 or if the PHY uses its own non-standard access mechanism.
2. Direct access for C45 PHYs and C22 PHYs when accessing the reachable DEVADs.
3. The standard clause 45 access extensions to the MMD registers through the indirection registers (clause 22) in all the other cases.
Signed-off-by: Carlo Caione <ccaione@baylibre.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: I53a73274b6386f8a510b590a0f7ce1923f7b5528
|
| /rk3399_rockchip-uboot/drivers/net/phy/ |
| H A D | phy.c | 7965f3d3316c67bf36bb684cb482c1f2c0c8d5da Fri Feb 08 17:25:06 UTC 2019 Carlo Caione <ccaione@baylibre.com> UPSTREAM: net: phy: Add generic helpers to access MMD PHY registers
Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added to allow access to the MMD PHY registers.
The MMD PHY registers can be accessed by several means:
1. Using two new MMD access function hooks in the PHY driver. These functions can be implemented when the PHY driver does not support the standard IEEE Compatible clause 45 access mechanism described in clause 22 or if the PHY uses its own non-standard access mechanism.
2. Direct access for C45 PHYs and C22 PHYs when accessing the reachable DEVADs.
3. The standard clause 45 access extensions to the MMD registers through the indirection registers (clause 22) in all the other cases.
Signed-off-by: Carlo Caione <ccaione@baylibre.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: I53a73274b6386f8a510b590a0f7ce1923f7b5528
|