]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: macb: Add PTP support to EMAC for sama7g5
authorDurai Manickam KR <durai.manickamkr@microchip.com>
Wed, 15 Mar 2023 09:50:53 +0000 (15:20 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Mar 2023 00:21:51 +0000 (17:21 -0700)
Add PTP capability to the Ethernet MAC.

Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c

index 27fc6c903d250f311fecdeb781d073aae0eac7e4..1dbee16fe90ac29825d3f1e7845c87267f27ef02 100644 (file)
@@ -4853,7 +4853,8 @@ static const struct macb_config sama7g5_gem_config = {
 
 static const struct macb_config sama7g5_emac_config = {
        .caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII |
-               MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII,
+               MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII |
+               MACB_CAPS_GEM_HAS_PTP,
        .dma_burst_length = 16,
        .clk_init = macb_clk_init,
        .init = macb_init,