• N
    net: fec: add Wake-on-LAN support · de40ed31
    Nimrod Andy 提交于
    Support for Wake-on-LAN using Magic Packet. ENET IP supports sleep mode
    in low power status, when system enter suspend status, Magic packet can
    wake up system even if all SOC clocks are gate. The patch doing below things:
    - flagging the device as a wakeup source for the system, as well as
      its Wake-on-LAN interrupt
    - prepare the hardware for entering WoL mode
    - add standard ethtool WOL interface
    - enable the ENET interrupt to wake us
    
    Tested on i.MX6q/dl sabresd, sabreauto boards, i.MX6SX arm2 boards.
    Signed-off-by: NFugang Duan <B38611@freescale.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    de40ed31
fec.h 22.5 KB