31.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:
  1. Indicate EEE capability using next page autonegotiation.
For the transmit path:
  1. 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.
  2. Wake up by clearing the TXLPIEN bit in the Network Control register.
For the receive path:
  1. Enable RXLPISBC bit in IER. The bit RXLPIS is set in Network Status Register triggering an interrupt.
  2. Wait for an interrupt to indicate that LPI has been received.
  3. Disable relevant parts of the receive path if desired.
  4. The RXLPIS bit in Network Status Register gets cleared to indicate that regular idle has been received. This triggers an interrupt.
  5. Re-enable the receive path.