]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b9b610b4585dbf485f8690edb9cd699465c5c8e
treedc1990267248f7cc0577d574eb2cafc9327d884b
parentbf701167d051b526aaea8adc7f5ea49940c82587
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