]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Added ZynqMP-specific initialization
authorRobert Hancock <robert.hancock@calian.com>
Thu, 27 Jan 2022 16:37:35 +0000 (10:37 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jan 2022 17:49:21 +0000 (17:49 +0000)
commit9fd102ef885142728f1ce80652f0b5e9a849484f
treebd8cf217b8bd94681ac55610c1c62bed3c312838
parent6cfae90247cf870f4445468201e2abb8c9f1eb65
net: macb: Added ZynqMP-specific initialization

The GEM controllers on ZynqMP were missing some initialization steps which
are required in some cases when using SGMII mode, which uses the PS-GTR
transceivers managed by the phy-zynqmp driver.

The GEM core appears to need a hardware-level reset in order to work
properly in SGMII mode in cases where the GT reference clock was not
present at initial power-on. This can be done using a reset mapped to
the zynqmp-reset driver in the device tree.

Also, when in SGMII mode, the GEM driver needs to ensure the PHY is
initialized and powered on.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c