mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
de40ed31b3
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>
26 lines
609 B
C
26 lines
609 B
C
/* include/linux/fec.h
|
|
*
|
|
* Copyright (c) 2009 Orex Computed Radiography
|
|
* Baruch Siach <baruch@tkos.co.il>
|
|
*
|
|
* Copyright (C) 2010 Freescale Semiconductor, Inc.
|
|
*
|
|
* Header file for the FEC platform data
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __LINUX_FEC_H__
|
|
#define __LINUX_FEC_H__
|
|
|
|
#include <linux/phy.h>
|
|
|
|
struct fec_platform_data {
|
|
phy_interface_t phy;
|
|
unsigned char mac[ETH_ALEN];
|
|
void (*sleep_mode_enable)(int enabled);
|
|
};
|
|
|
|
#endif
|