net: macb: Add zynqmp SGMII dynamic configuration support
authorRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Wed, 14 Sep 2022 12:33:16 +0000 (18:03 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 15:33:05 +0000 (08:33 -0700)
commit32cee7818111fa350e654b121b4eb6c9a3e580c5
treedc1990267248f7cc0577d574eb2cafc9327d884b
parent256dea9134c38fcc409ec7ea6a1eb67829b563bc
net: macb: Add zynqmp SGMII dynamic configuration support

Add support for the dynamic configuration which takes care of
configuring the GEM secure space configuration registers
using EEMI APIs.
High level sequence is to:
- Check for the PM dynamic configuration support, if no error proceed with
  GEM dynamic configurations(next steps) otherwise skip the dynamic
  configuration.
- Configure GEM Fixed configurations.
- Configure GEM_CLK_CTRL (gemX_sgmii_mode).
- Trigger GEM reset.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Conor Dooley <conor.dooley@microchip.com> (for MPFS)
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c