1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2001-2021 Intel Corporation
5 #ifndef _ICE_PTP_CONSTS_H_
6 #define _ICE_PTP_CONSTS_H_
8 /* Constant definitions related to the hardware clock used for PTP 1588
9 * features and functionality.
11 /* Constants defined for the PTP 1588 clock hardware. */
14 * struct ice_time_ref_info_e822
16 * E822 hardware can use different sources as the reference for the PTP
17 * hardware clock. Each clock has different characteristics such as a slightly
18 * different frequency, etc.
20 * This lookup table defines several constants that depend on the current time
21 * reference. See the struct ice_time_ref_info_e822 for information about the
22 * meaning of each constant.
24 const struct ice_time_ref_info_e822 e822_time_ref[NUM_ICE_TIME_REF_FREQ] = {
25 /* ICE_TIME_REF_FREQ_25_000 -> 25 MHz */
28 823437500, /* 823.4375 MHz PLL */
35 /* ICE_TIME_REF_FREQ_122_880 -> 122.88 MHz */
38 783360000, /* 783.36 MHz */
45 /* ICE_TIME_REF_FREQ_125_000 -> 125 MHz */
48 796875000, /* 796.875 MHz */
55 /* ICE_TIME_REF_FREQ_153_600 -> 153.6 MHz */
58 816000000, /* 816 MHz */
65 /* ICE_TIME_REF_FREQ_156_250 -> 156.25 MHz */
68 830078125, /* 830.78125 MHz */
75 /* ICE_TIME_REF_FREQ_245_760 -> 245.76 MHz */
78 783360000, /* 783.36 MHz */
86 #endif /* _ICE_PTP_CONSTS_H_ */