]> git.ipfire.org Git - thirdparty/linux.git/commit
net: macb: add support for Microchip pic64hpsc ethernet endpoint
authorCharles Perry <charles.perry@microchip.com>
Fri, 13 Mar 2026 14:06:10 +0000 (07:06 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Mar 2026 12:32:33 +0000 (13:32 +0100)
commitf45797fe02df3459bb9cef6886fe0cfa3ed273bd
tree39e71b4775dcccd012b55c44a7701489a51e1178
parent363a99af19a7f5c7ddd7571e39f3ae6663397bb6
net: macb: add support for Microchip pic64hpsc ethernet endpoint

pic64hpsc doesn't have the USRIO register so MACB_CAPS_USRIO_DISABLED is
used.

pic64hpsc does support PTP and has the timestamping unit so
MACB_CAPS_GEM_HAS_PTP is used.

jumbo_max_len is set to 16383 (0x3FFF) as reported by the DCFG2 register
bits 0..13. The JML register also has a default value of 0x3FFF.

dma_burst_length is set to 16 because that's what most other platforms
use and it worked for me so far. There is one other mode where bursts of
up to 256 are allowed but this might impact negatively other masters on
the NOC.  The register default value is 4 (bursts up to 4).

Signed-off-by: Charles Perry <charles.perry@microchip.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260313140610.3681752-4-charles.perry@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/cadence/macb_main.c