]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: socfpga: Agilex5 EMAC platform configuration
authorRohan G Thomas <rohan.g.thomas@altera.com>
Fri, 31 Oct 2025 17:27:07 +0000 (01:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Nov 2025 02:35:14 +0000 (18:35 -0800)
commit93d46ea3e984323fae0e5d2919cf5817e1297d41
tree85c34298dffd565142e269bdc4d8f59ae72fa48c
parent9b73cdad58893d2f88682c50275384c4b3b684f6
net: stmmac: socfpga: Agilex5 EMAC platform configuration

Agilex5 HPS EMAC uses the dwxgmac-3.10a IP, unlike previous socfpga
platforms which use dwmac1000 IP. Due to differences in platform
configuration, Agilex5 requires a distinct setup.

Introduce a setup_plat_dat() callback in socfpga_dwmac_ops to handle
platform-specific setup. This callback is invoked before
stmmac_dvr_probe() to ensure the platform data is correctly
configured. Also, implemented separate setup_plat_dat() callback for
current socfpga platforms and Agilex5.

Signed-off-by: Rohan G Thomas <rohan.g.thomas@altera.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20251101-agilex5_ext-v2-1-a6b51b4dca4d@altera.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c