mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
a13aff0641
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>
24 lines
520 B
C
24 lines
520 B
C
/*
|
|
* linux/include/net/ethoc.h
|
|
*
|
|
* Copyright (C) 2008-2009 Avionic Design GmbH
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Written by Thierry Reding <thierry.reding@avionic-design.de>
|
|
*/
|
|
|
|
#ifndef LINUX_NET_ETHOC_H
|
|
#define LINUX_NET_ETHOC_H 1
|
|
|
|
struct ethoc_platform_data {
|
|
u8 hwaddr[IFHWADDRLEN];
|
|
s8 phy_id;
|
|
u32 eth_clkfreq;
|
|
};
|
|
|
|
#endif /* !LINUX_NET_ETHOC_H */
|
|
|