aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/micrel_phy.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-11-19 12:59:18 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-21 14:08:56 -0500
commit63f44b2bfccdd98193bbd602747f780c0fae0f02 (patch)
treeef8014fc235bcd828034384706fbd34195e675ea /include/linux/micrel_phy.h
parentnet: phy: micrel: add has-broadcast-disable flag to type data (diff)
downloadlinux-dev-63f44b2bfccdd98193bbd602747f780c0fae0f02.tar.xz
linux-dev-63f44b2bfccdd98193bbd602747f780c0fae0f02.zip
net: phy: micrel: add generic clock-mode-select support
Add generic RMII-Reference-Clock-Select support. Several Micrel PHY have an RMII-Reference-Clock-Select bit to select 25 MHz or 50 MHz clock mode. Recently, support for configuring this through device tree for KSZ8021 and KSZ8031 was added. Generalise this support so that it can be configured for other PHY types as well. Note that some PHY revisions (of the same type) has this bit inverted. This should be either configurable through a new device-tree property, or preferably, determined based on PHY ID if possible. Also note that this removes support for setting 25 MHz mode from board files which was also added by the above mentioned commit 45f56cb82e45 ("net/phy: micrel: Add clock support for KSZ8021/KSZ8031"). Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/micrel_phy.h')
-rw-r--r--include/linux/micrel_phy.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h
index 53d33dee70e1..2e5b194b9b19 100644
--- a/include/linux/micrel_phy.h
+++ b/include/linux/micrel_phy.h
@@ -37,7 +37,6 @@
/* struct phy_device dev_flags definitions */
#define MICREL_PHY_50MHZ_CLK 0x00000001
-#define MICREL_PHY_25MHZ_CLK 0x00000002
#define MICREL_KSZ9021_EXTREG_CTRL 0xB
#define MICREL_KSZ9021_EXTREG_DATA_WRITE 0xC