]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit851b829f1ac2ea9f7bcd7b82017a62b19dd664c4
tree56a84387319e7021c1ada53ed10767fe4cc61c06
parentae5cb05910dbd4b8bc88cb60226bf753e0a4e396
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