]> git.baikalelectronics.ru Git - kernel.git/commit
ice: register 1588 PTP clock device object for E810 devices
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 9 Jun 2021 16:39:50 +0000 (09:39 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 11 Jun 2021 15:47:30 +0000 (08:47 -0700)
commit40b7ff849b7a14d4095c9b98dd47976420b9a12f
tree1f5675cdd233ce7c506887db55eeba7539cad8bc
parent82b2ccf1ca1580cff90e208c8bac76c487f5b4ad
ice: register 1588 PTP clock device object for E810 devices

Add a new ice_ptp.c file for holding the basic PTP clock interface
functions. If the device supports PTP, call the new ice_ptp_init and
ice_ptp_release functions where appropriate.

If the function owns the hardware resource associated with the PTP
hardware clock, register with the PTP_1588_CLOCK infrastructure to
allocate a new clock object that represents the device hardware clock.

Implement basic functionality for reading and setting the clock time,
performing clock adjustments, and adjusting the clock frequency.

Future changes will introduce functionality for handling related
features including Tx and Rx timestamps.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/Kconfig
drivers/net/ethernet/intel/ice/Makefile
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_ptp.c [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_ptp.h [new file with mode: 0644]