diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-09-18 17:07:59 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 14:32:48 -0700 |
commit | d21c784c785c63a0b731e7516a9eb94cd68a646b (patch) | |
tree | cc083e6f76a57fd8ef266943f3f01921744ea314 /drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h | |
parent | 23cd4f27f1d6d19aae7bbf0ff44b9b88036a6f96 (diff) | |
download | lwn-d21c784c785c63a0b731e7516a9eb94cd68a646b.tar.gz lwn-d21c784c785c63a0b731e7516a9eb94cd68a646b.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h index df2458a5e9ef..e1023538b4c3 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h @@ -1,14 +1,18 @@ /* 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 |