]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: dwmac-renesas-gbeth: Use OF data for configuration
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 8 Sep 2025 10:59:00 +0000 (11:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Sep 2025 18:32:58 +0000 (11:32 -0700)
commit264c26934f75e78cb71817a102184bd88a98932f
tree0574de9fcc0e27da2de04dde25f5a559629c3914
parentd43ce98223496e68bf8f12b42325e39ea5ae7247
net: stmmac: dwmac-renesas-gbeth: Use OF data for configuration

Prepare for adding RZ/T2H SoC support by making the driver configuration
selectable via OF match data. While the RZ/V2H(P) and RZ/T2H use the same
version of the Synopsys DesignWare MAC (version 5.20), the hardware is
synthesized with different options. To accommodate these differences,
introduce a struct holding per-SoC configuration such as clock list,
number of clocks, TX clock rate control, and STMMAC flags, and retrieve
it from the device tree match entry during probe.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20250908105901.3198975-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c