diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-07 01:28:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-07 02:24:29 +0300 |
commit | 09a0354cadec267be7f5249c89eb998b3474263a (patch) | |
tree | ddfbbda4246b0c43a1428e929b4bfe2c9db08b95 /drivers/gpio/gpio-siox.c | |
parent | 2190cd1974abbafeeb17ce654e679c5d646842e1 (diff) | |
download | linux-09a0354cadec267be7f5249c89eb998b3474263a.tar.xz |
net: axienet: Use clock framework to get device clock rate
This driver was previously always calculating the MDIO clock divisor
(from AXI bus clock to MDIO bus clock) based on the CPU clock frequency,
assuming that it is the same as the AXI bus frequency, but that
simplistic method only works on the MicroBlaze platform.
Add support for specifying the clock used for the device in the device
tree using the clock framework. If the clock is specified then it will
be used when calculating the clock divisor. The previous CPU clock
detection method is left for backward compatibility if no clock is
specified.
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpio/gpio-siox.c')
0 files changed, 0 insertions, 0 deletions