• Johan Hovold's avatar
    net: phy: micrel: add generic clock-mode-select support · 63f44b2b
    Johan Hovold authored
    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: default avatarJohan Hovold <johan@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    63f44b2b
micrel.c 21 KB