1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * PTP hardware clock driver for the FemtoClock3 family of timing and
4 * synchronization devices.
6 * Copyright (C) 2023 Integrated Device Technology, Inc., a Renesas Company.
11 #include <linux/ktime.h>
12 #include <linux/ptp_clock.h>
13 #include <linux/regmap.h>
15 #define FW_FILENAME "idtfc3.bin"
17 #define MAX_FFO_PPB (244000)
18 #define TDC_GET_PERIOD (10)
21 struct ptp_clock_info caps
;
22 struct ptp_clock
*ptp_clock
;
24 /* Mutex to protect operations from being interrupted */
27 struct regmap
*regmap
;
28 struct idtfc3_hw_param hw_param
;
42 s64 tod_write_overhead
;
45 #endif /* PTP_IDTFC3_H */