ice: ensure the hardware Clock Generation Unit is configured
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 13 Oct 2021 15:55:58 +0000 (08:55 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Dec 2021 17:11:40 +0000 (09:11 -0800)
commitb111ab5a11eb8f7261940c95ada9fbf5ca784731
tree56a84387319e7021c1ada53ed10767fe4cc61c06
parent3a7496234d179a7dd6a7bb152f62422c3f38e15a
ice: ensure the hardware Clock Generation Unit is configured

The E822 device has a Clock Generation Unit (CGU) responsible for
determining the clock frequency that drives the timers.

Ensure this function is initialized when bringing up the PTP support, so
that the clock has a known frequency.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_cgu_regs.h [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_ptp_consts.h
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
drivers/net/ethernet/intel/ice/ice_ptp_hw.h