]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ptp: Add implementation for physical hardware clock operations
authorDanielle Ratson <danieller@nvidia.com>
Wed, 27 Jul 2022 06:23:24 +0000 (09:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jul 2022 10:02:23 +0000 (11:02 +0100)
commit82ba1f231b22d57d9fe406078ba131eaaaff4bcf
tree6b3d8a586ece95b4725bee2b8e71479da6e1b5da
parent57d3d61404c47131cf3041463ea1981c012f1e61
mlxsw: spectrum_ptp: Add implementation for physical hardware clock operations

Implement physical hardware clock operations. The main difference between
the existing operations of Spectrum-1 and the new operations of Spectrum-2
is the usage of UTC hardware clock instead of FRC.

Add support for init() and fini() functions for PTP clock in Spectrum-2.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h