]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: rk3506, rk3528 and rk3588 have rmii_mode in clock register
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 4 Feb 2026 09:14:43 +0000 (09:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 17:20:38 +0000 (09:20 -0800)
commitb10d56b0db3ae9fa61b0b39c13e854a6bdae800d
tree5534dfdc2fb5aab86755ca9f9700f3fc419241cd
parent5c1fc7cb81dfed0c84ae19b1022d8ca977bd6f5d
net: stmmac: rk: rk3506, rk3528 and rk3588 have rmii_mode in clock register

rk3506, rk3528 and rk3588 have the rmii_mode bit in the clock GRF
register rather than the gmac GRF register. Provide a mask for this
field in the clock register, and convert these SoCs to use this.
Add the necessary code in rk_gmac_powerup() to write this field.

This allows us to get rid of these SoCs set_to_rmii() function. As
such, we need to mark these SoCs as supporting RMII mode.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de> #px30,rk3328,rk3568,rk3588
Link: https://patch.msgid.link/E1vnYyB-00000007hpF-1dwK@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c