]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: add GMAC_CLK_xx constants, simplify RGMII definitions
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 28 Jan 2026 10:58:44 +0000 (10:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Jan 2026 02:31:25 +0000 (18:31 -0800)
commitf7aaa6fb1193d8d5945605aab8c92e5752e9329b
tree23015e75041e4386702f6c1bdebb6e43450269be
parent1c249fc1e19e1d84cd748f8b8d02d36480445078
net: stmmac: rk: add GMAC_CLK_xx constants, simplify RGMII definitions

All the definitions of the RGMII related xxx_GMAC_CLK_xxx definitions
use the same field values to select the clock rate. Provide common
definitions for these field values, passing them in to a single macro
for each variant that generates the appropriate values for the speed
register.

No change to produced code on aarch64.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vl3G0-00000006v3R-2ZBc@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c