net: sparx5: Add support for ptp clocks
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Mar 2022 11:08:56 +0000 (12:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 13:03:09 +0000 (13:03 +0000)
commit0933bd04047c3b96ba49545a8f91e7e6f8f666ff
treee9e71bcf96504b000ce7c72c27fd6a023f619c97
parent3193a6118140707c19db5b734f6b2afdbc743e62
net: sparx5: Add support for ptp clocks

The sparx5 has 3 PHC. Enable each of them, for now all the
timestamping is happening on the first PHC.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/Makefile
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c [new file with mode: 0644]