]> git.baikalelectronics.ru Git - kernel.git/commit
phy: nxp-c45-tja11xx: add timestamping support
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Mon, 10 May 2021 15:34:33 +0000 (18:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:54:23 +0000 (14:54 -0700)
commitb7257d75f91ddaf98e337742b274abd8401dd60e
tree52d7f4fff7ffa70e632aff195c5a5ac03ee591bd
parent2e361d868ac793301c085d8320795de1a6301f2a
phy: nxp-c45-tja11xx: add timestamping support

Add mii_timestamper interface and register a ptp clock.
The package timestamping can work with or without interrupts.
RX timestamps are received in the reserved field of the PTP package.
TX timestamps are read via MDIO from a set of registers.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-c45-tja11xx.c