linux/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h
Yangbo Lu d21c784c78 dpaa2-eth: define a global ptp_qoriq structure pointer
Define a global ptp_qoriq structure pointer, and export to use.
The ptp clock operations will be used in dpaa2-eth driver.
For example, supporting one step timestamping needs to write
current time to hardware frame annotation before sending and
then hardware inserts the delay time on frame during sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-18 14:32:48 -07:00

19 lines
273 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright 2018 NXP
* Copyright 2020 NXP
*/
#ifndef __RTC_H
#define __RTC_H
#include <linux/fsl/ptp_qoriq.h>
#include "dprtc.h"
#include "dprtc-cmd.h"
extern int dpaa2_phc_index;
extern struct ptp_qoriq *dpaa2_ptp;
#endif