Skip to content

Commit 88619e7

Browse files
Benjamin GaignardPaolo Abeni
authored andcommitted
net: stmmac: rk3588: Allow multiple gmac controller
RK3588(s) can have multiple gmac controllers. Re-use rk3568 logic to distinguish them. Fixes: 2f2b60a ("net: ethernet: stmmac: dwmac-rk: Add gmac support for rk3588") Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent baee5a1 commit 88619e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,12 @@ static const struct rk_gmac_ops rk3588_ops = {
12431243
.set_rgmii_speed = rk3588_set_gmac_speed,
12441244
.set_rmii_speed = rk3588_set_gmac_speed,
12451245
.set_clock_selection = rk3588_set_clock_selection,
1246+
.regs_valid = true,
1247+
.regs = {
1248+
0xfe1b0000, /* gmac0 */
1249+
0xfe1c0000, /* gmac1 */
1250+
0x0, /* sentinel */
1251+
},
12461252
};
12471253

12481254
#define RV1108_GRF_GMAC_CON0 0X0900

0 commit comments

Comments
 (0)