]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Add MTUTC register's fields for supporting PTP in Spectrum-2
authorDanielle Ratson <danieller@nvidia.com>
Sun, 24 Jul 2022 08:03:16 +0000 (11:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 12:58:55 +0000 (13:58 +0100)
commit95e6479ed26cd88a256126db1f091a7b660c24e4
treeb16bc300980aace53085a1f6428d5a37a97d8fbe
parent380999e727188ef0c1080b1076234c3a2ea40ea5
mlxsw: reg: Add MTUTC register's fields for supporting PTP in Spectrum-2

The MTUTC register configures the HW UTC counter.

Add the relevant fields and operations to support PTP in Spectrum-2 and
update mlxsw_reg_mtutc_pack() with the new fields for a future use.

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/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c