aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_common.h
diff options
context:
space:
mode:
authorChristian Eggers <[email protected]>2023-01-10 08:49:19 +0000
committerDavid S. Miller <[email protected]>2023-01-13 08:40:40 +0000
commitc59e12a140fbfbef0fae72be71b47cdb05f25713 (patch)
tree5ace2f4f9dd0d0a77a4b783ccc0a153d0300c34a /drivers/net/dsa/microchip/ksz_common.h
parentnet: dsa: microchip: ptp: add the posix clock support (diff)
downloadkernel-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.h3
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 {