net/ice/base: add functions for device clock control
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Aug 2021 02:51:14 +0000 (10:51 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 11 Aug 2021 02:23:18 +0000 (04:23 +0200)
commit97f4f78bbd9ff5c058372addcfb72d5ddc0a1adf
tree493a079e91470d23bea34a21766b8423abee919d
parentc9d0fccff01a6c1caf4911368ec909bd3cd95207
net/ice/base: add functions for device clock control

The ice hardware supports exposing a hardware clock for high precision
timestamping. This is primarily intended for accelerating the Precision
Time Protocol.

Add several low level functions intended to be used as the basis for
enabling the device clock, and ensuring that the port timers are
synchronized properly.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/base/ice_adminq_cmd.h
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h
drivers/net/ice/base/ice_controlq.c
drivers/net/ice/base/ice_controlq.h
drivers/net/ice/base/ice_ptp_consts.h [new file with mode: 0644]
drivers/net/ice/base/ice_ptp_hw.c [new file with mode: 0644]
drivers/net/ice/base/ice_ptp_hw.h [new file with mode: 0644]
drivers/net/ice/base/ice_type.h
drivers/net/ice/base/meson.build