Wake-On-LAN
Wake-On-LAN (W OL) is normall y a MAC-based f unction to wak e up a host s yste m (for ex ample, an Etherne t end device,
such as a PC) that is in standby power mode. Wake-up is triggered by receiving and detecting a special packet
(comm only referred to as the “m agic packet”) that is sent by the rem ote link partner. The KSZ903 1MNX can perform the
same W O L function if the MAC addr ess of its assoc iated MAC d evice is e ntere d into t he KSZ 9031MNX PH Y regis ters f or
magic-packet detection. When the KSZ9031MNX detects the magic packet, it wakes up the host by driving its power
management event (PME) output pin low.
By defau lt, the W OL f unction is d isabled. It is ena bled by s etting th e enabl ing bit and c onfiguri ng the as sociated register s
for the selected PME wake-up detection method.
The KSZ9031MNX provides three methods to trigger a PME wake-up:
• Magic-packet detection
• Customized-packet detection
• Link status change detection
Magic-Packet Detection
The m agic packet’s fram e for mat starts with 6 b ytes of 0xFFh and is f ollowed b y 16 repetitions of the MAC addres s of its
associated MAC device (local MAC device).
When the magic packet is detected from its link partner, the KSZ9031MNX asserts its PME output pin low.
The following MMD Address 2h registers are provided for magic-packet detection:
• Magic-pac k et detecti on is enab led by writ ing a ‘1’ to MMD Address 2h, Register 10h, Bit [6]
• The MAC address (for the local MAC device) is written to and stored in MMD Address 2h, Registers 11h –
13h
The KSZ9031MNX does not generate the magic packet. The magic packet must be provided by the external system.
Customized-Packet Detection
The c ustomized pac k et has ass ociated r egister /bit m asks to s elect which b yte, or bytes, of the fir st 64 bytes of the pac k et
to use in the C RC calcu lation. Af ter the K SZ9031MNX receiv es the pack et fr om its link partner , the selec ted b ytes for the
received packet are used to calculate the CRC. The calculated CRC is compared to the expected CRC value that was
previously written to and stored in the KSZ9031MNX PHY registers. If there is a match, the KSZ9031MNX asserts its
PME output pin low.
Four customized packets are provided t o suppor t four types of wak e-up scenar ios. A ded icated s et of regis ters is used to
configure and enable each customized packet.
The following MMD registers are provided for customized-packet detection:
• Each of the four customized packets is enabled via MMD Address 2h, Register 10h,
- Bit [2] // For customized packets, type 0
- Bit [3] // For customized packets, type 1
- Bit [4] // For customized packets, type 2
- Bit [5] // For customized packets, type 3
• 32-bit expected CRCs are written to and stored in:
- MMD Address 2h, Registers 14h – 15h // For customized packets, type 0
- MMD Address 2h, Registers 16h – 17h // For customized packets, type 1
- MMD Address 2h, Registers 18h – 19h // For customized packets, type 2
- MMD Address 2h, Registers 1Ah – 1Bh // For customized packets, type 3
• Masks to indicate which of the first 64-bytes to use in the CRC calculation are set in:
- MMD Address 2h, Registers 1Ch – 1Fh // For customized packets, type 0
- MMD Address 2h, Registers 20h – 23h // For customized packets, type 1
- MMD Address 2h, Registers 24h – 27h // For customized packets, type 2
- MMD Address 2h, Registers 28h – 2Bh // For customized packets, type 3