diff options
author | Tan Tee Min <tee.min.tan@intel.com> | 2021-04-14 08:16:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-14 12:57:45 -0700 |
commit | f4da56529da602010979e8497d1f02eaf5df8883 (patch) | |
tree | d052a0738def1cd83b584580ed7b030a29da0869 /drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h | |
parent | 945c6ff851d8cc41571a8bb5735fb40a925a7aa2 (diff) | |
download | linux-stable-f4da56529da602010979e8497d1f02eaf5df8883.tar.gz linux-stable-f4da56529da602010979e8497d1f02eaf5df8883.tar.bz2 linux-stable-f4da56529da602010979e8497d1f02eaf5df8883.zip |
net: stmmac: Add support for external trigger timestamping
The Synopsis MAC controller supports auxiliary snapshot feature that
allows user to store a snapshot of the system time based on an external
event.
This patch add supports to the above mentioned feature. Users will be
able to triggered capturing the time snapshot from user-space using
application such as testptp or any other applications that uses the
PTP_EXTTS_REQUEST ioctl request.
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Tan Tee Min <tee.min.tan@intel.com>
Co-developed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h index f88727ce4d30..53172a439810 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h @@ -73,6 +73,7 @@ #define PTP_ACR_ATSEN1 BIT(5) /* Auxiliary Snapshot 1 Enable */ #define PTP_ACR_ATSEN2 BIT(6) /* Auxiliary Snapshot 2 Enable */ #define PTP_ACR_ATSEN3 BIT(7) /* Auxiliary Snapshot 3 Enable */ +#define PTP_ACR_ATSEN_SHIFT 5 /* Auxiliary Snapshot shift */ #define PTP_ACR_MASK GENMASK(7, 4) /* Aux Snapshot Mask */ #define PMC_ART_VALUE0 0x01 /* PMC_ART[15:0] timer value */ #define PMC_ART_VALUE1 0x02 /* PMC_ART[31:16] timer value */ |