mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
net: zynq_gem: add SPEED_10000 case in clock rate selection
Add SPEED_10000 case in the speed switch with the fixed 150 MHz tx_clk rate. Without this, clk_rate stays 0 for 10000 Mbps and clk_set_rate(0) on a fixed clock aborts initialization. Signed-off-by: Pranav Tilak <pranav.vinaytilak@amd.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/20260410093018.1461732-2-pranav.vinaytilak@amd.com
This commit is contained in:
parent
b82846dd81
commit
8342f57579
@ -134,6 +134,7 @@
|
||||
#define ZYNQ_GEM_FREQUENCY_10 2500000UL
|
||||
#define ZYNQ_GEM_FREQUENCY_100 25000000UL
|
||||
#define ZYNQ_GEM_FREQUENCY_1000 125000000UL
|
||||
#define ZYNQ_GEM_FREQUENCY_10000 150000000UL
|
||||
|
||||
#define RXCLK_EN BIT(0)
|
||||
|
||||
@ -602,6 +603,9 @@ static int zynq_gem_init(struct udevice *dev)
|
||||
}
|
||||
|
||||
switch (priv->phydev->speed) {
|
||||
case SPEED_10000:
|
||||
clk_rate = ZYNQ_GEM_FREQUENCY_10000;
|
||||
break;
|
||||
case SPEED_1000:
|
||||
nwconfig |= ZYNQ_GEM_NWCFG_SPEED1000;
|
||||
clk_rate = ZYNQ_GEM_FREQUENCY_1000;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user