summaryrefslogtreecommitdiff
path: root/drivers/fpga/cyclon2.c
diff options
context:
space:
mode:
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>2023-06-19 09:19:22 +0530
committerMichal Simek <michal.simek@amd.com>2023-07-21 09:00:38 +0200
commit22836f088d6027ee8e4bde17abbf71644a8388f5 (patch)
treefffd731ad7e173db95662cf6c9591e502be8b576 /drivers/fpga/cyclon2.c
parent9a45365ae9cd80e0f060e480c544c17bb9a81e51 (diff)
net: zynq_gem: Don't hardcode the MDC clock divisor
As per spec MDC must not exceed 2.5MHz, read the pclk clock from the device tree and update the MDC clock divisor. GEM devices support larger clock divisors and have a different range of divisors. Program the MDIO clock divisors based on the clock rate of the pclk clock. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20230619034922.24019-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/fpga/cyclon2.c')
0 files changed, 0 insertions, 0 deletions