diff options
| author | Joel Stanley <[email protected]> | 2017-10-13 04:16:38 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-18 11:09:06 +0000 |
| commit | 4b70c62b9eafcee0505b440732d2e00c50f3085d (patch) | |
| tree | ca6718f6c58846349bbbecc6cb5a047d3662bc83 /net/lapb/lapb_timer.c | |
| parent | net: export netdev_txq_to_tc to allow sch_mqprio to compile as module (diff) | |
| download | kernel-4b70c62b9eafcee0505b440732d2e00c50f3085d.tar.gz kernel-4b70c62b9eafcee0505b440732d2e00c50f3085d.zip | |
net: ftgmac100: Request clock and set speed
According to the ASPEED datasheet, gigabit speeds require a clock of
100MHz or higher. Other speeds require 25MHz or higher. This patch
configures a 100MHz clock if the system has a direct-attached
PHY, or 25MHz if the system is running NC-SI which is limited to 100MHz.
There appear to be no other upstream users of the FTGMAC100 driver it is
hard to know the clocking requirements of other platforms. Therefore a
conservative approach was taken with enabling clocks. If the platform is
not ASPEED, both requesting the clock and configuring the speed is
skipped.
Signed-off-by: Joel Stanley <[email protected]>
Tested-by: Andrew Jeffery <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
