This patch adds PTP clock and uses it in Octeontx2 network device. PTP clock uses mailbox calls to access the hardware counter on the RVU side. Co-developed-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Aleksey Makarov <amakarov@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
14 lines
353 B
C
14 lines
353 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Marvell OcteonTx2 PTP support for ethernet driver */
|
|
|
|
#ifndef OTX2_PTP_H
|
|
#define OTX2_PTP_H
|
|
|
|
int otx2_ptp_init(struct otx2_nic *pfvf);
|
|
void otx2_ptp_destroy(struct otx2_nic *pfvf);
|
|
|
|
int otx2_ptp_clock_index(struct otx2_nic *pfvf);
|
|
int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
|
|
|
|
#endif
|