• Nimrod Andy's avatar
    net: fec: add Wake-on-LAN support · de40ed31
    Nimrod Andy authored
    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: default avatarFugang Duan <B38611@freescale.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    de40ed31
fsl-fec.txt 2.09 KB