net: microchip: sparx5: add function for calculating PTP basetime
authorDaniel Machon <daniel.machon@microchip.com>
Thu, 2 Feb 2023 10:43:51 +0000 (11:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:26:26 +0000 (08:26 +0000)
commit9e02131ec272d031508aa36f30dd5d4d4ab7bf55
tree15c0ae71084bc27a1a5086380be1190d8d588f12
parentd2185e79ba8f1c603af11f0864767d96a787348d
net: microchip: sparx5: add function for calculating PTP basetime

Add a new function for calculating PTP basetime, required by the stream
gate scheduler to calculate gate state (open / close).

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c
drivers/net/ethernet/microchip/sparx5/sparx5_qos.c