net/ice/base: add clock initialization function
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Aug 2021 02:51:18 +0000 (10:51 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 11 Aug 2021 02:23:54 +0000 (04:23 +0200)
commit200df241d4c7a3a2fdeec8781a23d02f4f76a92a
tree556e04accdfb05dc992256c3f4cc23d004c22d2e
parent275e88b0cf1ad82f04d0cad7ba5bd893984ed4fd
net/ice/base: add clock initialization function

Before the device PTP hardware clock can be initialized, some steps must
be taken by the driver. This includes writing some registers and
initializing the PHY.

Some of these steps are distinct depending on the device type (E810 or
E822). Additionally, a future change will introduce more steps for E822
devices to program the Clock Generation Unit.

Introduce ice_ptp_init_phc as well as device-specific sub-functions for
e810 and e822 devices.

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_cgu_regs.h [new file with mode: 0644]
drivers/net/ice/base/ice_ptp_consts.h
drivers/net/ice/base/ice_ptp_hw.c
drivers/net/ice/base/ice_ptp_hw.h