[Intel-wired-lan] [PATCH 4/8] ice: add low level PTP clock access functions
Brelinski, TonyX
tonyx.brelinski at intel.com
Thu May 27 17:24:16 UTC 2021
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jacob Keller
> Sent: Thursday, May 20, 2021 9:49 AM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Cc: Lion, Sean <sean.lion at intel.com>
> Subject: [Intel-wired-lan] [PATCH 4/8] ice: add low level PTP clock access
> functions
>
> Add the ice_ptp_hw.c file and some associated definitions to the ice driver
> folder. This file contains basic low level definitions for functions that interact
> with the device hardware.
>
> For now, only E810-based devices are supported. The ice hardware supports
> 2 major variants which have different PHYs with different procedures
> necessary for interacting with the device clock.
>
> Because the device captures timestamps in the PHY, each PHY has its own
> internal timer. The timers are synchronized in hardware by first preparing the
> source timer and the PHY timer shadow registers, and then issuing a
> synchronization command. This ensures that both the source timer and PHY
> timers are programmed simultaneously. The timers themselves are all driven
> from the same oscillator source.
>
> The functions in ice_ptp_hw.c abstract over the differences between how
> the PHYs in E810 are programmed vs how the PHYs in E822 devices are
> programmed. This series only implements E810 support, but E822 support will
> be added in a future change.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
> .../net/ethernet/intel/ice/ice_hw_autogen.h | 17 +
> drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 662 ++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 81 +++
> drivers/net/ethernet/intel/ice/ice_type.h | 9 +
> include/linux/kernel.h | 12 +
> 5 files changed, 781 insertions(+)
> create mode 100644 drivers/net/ethernet/intel/ice/ice_ptp_hw.c
> create mode 100644 drivers/net/ethernet/intel/ice/ice_ptp_hw.h
Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> (A Contingent Worker at Intel)
More information about the Intel-wired-lan
mailing list