diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-02-04 03:33:10 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-04 20:19:51 -0800 |
commit | a13aff0641a92dc0b95136e32526e2ce81ffc4ef (patch) | |
tree | 7b99892ca02dd681f538e6de9f99ca7dcf225931 /include/net | |
parent | 445a48cc9df90775d6479ef4c73d3a90184af4ed (diff) | |
download | op-kernel-dev-a13aff0641a92dc0b95136e32526e2ce81ffc4ef.zip op-kernel-dev-a13aff0641a92dc0b95136e32526e2ce81ffc4ef.tar.gz |
net: ethoc: set up MII management bus clock
MII management bus clock is derived from the MAC clock by dividing it by
MIIMODER register CLKDIV field value. This value may need to be set up
in case it is undefined or its default value is too high (and
communication with PHY is too slow) or too low (and communication with
PHY is impossible). The value of CLKDIV is not specified directly, but
is derived from the MAC clock for the default MII management bus frequency
of 2.5MHz. The MAC clock may be specified in the platform data, or in
the 'clocks' device tree attribute.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ethoc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ethoc.h b/include/net/ethoc.h index 96f3789..2a2d6bb 100644 --- a/include/net/ethoc.h +++ b/include/net/ethoc.h @@ -16,6 +16,7 @@ struct ethoc_platform_data { u8 hwaddr[IFHWADDRLEN]; s8 phy_id; + u32 eth_clkfreq; }; #endif /* !LINUX_NET_ETHOC_H */ |