diff options
| author | Christian Eggers <[email protected]> | 2023-01-10 08:49:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-01-13 08:40:40 +0000 |
| commit | c59e12a140fbfbef0fae72be71b47cdb05f25713 (patch) | |
| tree | 5ace2f4f9dd0d0a77a4b783ccc0a153d0300c34a /drivers/net/dsa/microchip/ksz_common.h | |
| parent | net: dsa: microchip: ptp: add the posix clock support (diff) | |
| download | kernel-c59e12a140fbfbef0fae72be71b47cdb05f25713.tar.gz kernel-c59e12a140fbfbef0fae72be71b47cdb05f25713.zip | |
net: dsa: microchip: ptp: Initial hardware time stamping support
This patch adds the routine for get_ts_info, hwstamp_get, set. This enables
the PTP support towards userspace applications such as linuxptp.
Signed-off-by: Christian Eggers <[email protected]>
Co-developed-by: Arun Ramadoss <[email protected]>
Signed-off-by: Arun Ramadoss <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 23ed7fa72a3c..a5ce7ec30ba2 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -102,6 +102,9 @@ struct ksz_port { struct ksz_device *ksz_dev; struct ksz_irq pirq; u8 num; +#if IS_ENABLED(CONFIG_NET_DSA_MICROCHIP_KSZ_PTP) + struct hwtstamp_config tstamp_config; +#endif }; struct ksz_device { |
