summaryrefslogtreecommitdiffstats
path: root/include/linux/fec.h
diff options
context:
space:
mode:
authorNimrod Andy <B38611@freescale.com>2014-12-24 17:30:39 +0800
committerDavid S. Miller <davem@davemloft.net>2014-12-31 13:06:50 -0500
commitde40ed31b3c577cefd7b54972365a272ecbe9dd6 (patch)
tree2d74ddd3e075563f713332dfe0449bd5567a557c /include/linux/fec.h
parent03366a33db91abd298457b0f707187247f1a6b7d (diff)
downloadop-kernel-dev-de40ed31b3c577cefd7b54972365a272ecbe9dd6.zip
op-kernel-dev-de40ed31b3c577cefd7b54972365a272ecbe9dd6.tar.gz
net: fec: add Wake-on-LAN support
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: Fugang Duan <B38611@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/fec.h')
-rw-r--r--include/linux/fec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fec.h b/include/linux/fec.h
index bcff455..1454a50 100644
--- a/include/linux/fec.h
+++ b/include/linux/fec.h
@@ -19,6 +19,7 @@
struct fec_platform_data {
phy_interface_t phy;
unsigned char mac[ETH_ALEN];
+ void (*sleep_mode_enable)(int enabled);
};
#endif
OpenPOWER on IntegriCloud