diff options
| author | Jan Petrous (OSS) <jan.petrous@oss.nxp.com> | 2024-12-05 17:43:01 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-09 18:36:02 -0800 |
| commit | 386aa60abdb600a4e5ad818e6dba171685942e54 (patch) | |
| tree | 32b45c3ae30ae7b10a96354b11c31b0c25724fe6 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | net: stmmac: Fix clock rate variables size (diff) | |
| download | linux-386aa60abdb600a4e5ad818e6dba171685942e54.tar.gz linux-386aa60abdb600a4e5ad818e6dba171685942e54.zip | |
net: phy: Add helper for mapping RGMII link speed to clock rate
The RGMII interface supports three data rates: 10/100 Mbps
and 1 Gbps. These speeds correspond to clock frequencies
of 2.5/25 MHz and 125 MHz, respectively.
Many Ethernet drivers, including glues in stmmac, follow
a similar pattern of converting RGMII speed to clock frequency.
To simplify code, define the helper rgmii_clock(speed)
to convert connection speed to clock frequency.
Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jan Petrous (OSS) <jan.petrous@oss.nxp.com>
Link: https://patch.msgid.link/20241205-upstream_s32cc_gmac-v8-4-ec1d180df815@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
