Skip to content

Commit 394ae0d

Browse files
nbuchwitzpopcornmix
authored andcommitted
net: cadence: macb: enable EEE for Raspberry Pi RP1
commit 92ba330 upstream Set MACB_CAPS_EEE for the Raspberry Pi 5 RP1 southbridge (Cadence GEM_GXL rev 0x00070109 paired with BCM54213PE PHY). EEE has been verified on RP1 hardware: the LPI counter registers at 0x270-0x27c return valid data, the TXLPIEN bit in NCR (bit 19) controls LPI transmission correctly, and ethtool --show-eee reports the negotiated state after link-up. Other GEM variants that share the same LPI register layout (SAMA5D2, SAME70, PIC32CZ) can be enabled by adding MACB_CAPS_EEE to their respective config entries once tested. Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> Reviewed-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent 218eed3 commit 394ae0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5732,7 +5732,8 @@ static const struct macb_config eyeq5_config = {
57325732
static const struct macb_config raspberrypi_rp1_config = {
57335733
.caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG |
57345734
MACB_CAPS_JUMBO |
5735-
MACB_CAPS_GEM_HAS_PTP,
5735+
MACB_CAPS_GEM_HAS_PTP |
5736+
MACB_CAPS_EEE,
57365737
.dma_burst_length = 16,
57375738
.clk_init = macb_clk_init,
57385739
.init = macb_init,

0 commit comments

Comments
 (0)