mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
d21c784c78
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>
19 lines
273 B
C
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
|