32.6.19 LPI Operation in the EMAC
It is best to use firmware to control LPI. LPI operation happens at the system level. Firmware gives maximum control and flexibility of operation. LPI operation is straightforward and firmware should be capable of responding within the required timeframes.
Autonegotiation:
- Indicate EEE capability using next page autonegotiation.
- If the link has been up for 1 second and there is nothing being transmitted, write to the TXLPIEN bit in the Network Control register.
- Wake up by clearing the TXLPIEN bit in the Network Control register.
For the receive path:
- Enable RXLPISBC bit in IER. The bit RXLPIS is set in Network Status Register triggering an interrupt.
- Wait for an interrupt to indicate that LPI has been received.
- Disable relevant parts of the receive path if desired.
- The RXLPIS bit in Network Status Register gets cleared to indicate that regular idle has been received. This triggers an interrupt.
- Re-enable the receive path.