diff options
| author | David S. Miller <[email protected]> | 2020-09-18 17:49:20 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-18 17:49:20 -0700 |
| commit | 42ccf1cd6aa5bb6fba7a2bfeb08c88d822e05916 (patch) | |
| tree | 42d2f1227f70842e4576295c01f064aaf7567889 /include/linux | |
| parent | 5e43df14d6b436ca767676bc8e41506dc03c4d89 (diff) | |
| parent | 6d23d831e9bd0b1d2bcd9a1ecdc6ac8e6d162c36 (diff) | |
Merge branch 'ptp_qoriq-support-FIPER3'
Yangbo Lu says:
====================
ptp_qoriq: support FIPER3
The FIPER3 (fixed interval period pulse generator) is supported on
DPAA2 and ENETC network controller hardware. This patch-set is to
support it in ptp_qoriq driver and dt-binding.
Changes for v2:
- Some improvement in code.
- Added ACK from Vladimir.
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fsl/ptp_qoriq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fsl/ptp_qoriq.h b/include/linux/fsl/ptp_qoriq.h index 884b8f8ca06d..01acebe37fab 100644 --- a/include/linux/fsl/ptp_qoriq.h +++ b/include/linux/fsl/ptp_qoriq.h @@ -136,6 +136,7 @@ struct ptp_qoriq_registers { #define DEFAULT_TMR_PRSC 2 #define DEFAULT_FIPER1_PERIOD 1000000000 #define DEFAULT_FIPER2_PERIOD 1000000000 +#define DEFAULT_FIPER3_PERIOD 1000000000 struct ptp_qoriq { void __iomem *base; @@ -147,6 +148,7 @@ struct ptp_qoriq { struct dentry *debugfs_root; struct device *dev; bool extts_fifo_support; + bool fiper3_support; int irq; int phc_index; u32 tclk_period; /* nanoseconds */ @@ -155,6 +157,7 @@ struct ptp_qoriq { u32 cksel; u32 tmr_fiper1; u32 tmr_fiper2; + u32 tmr_fiper3; u32 (*read)(unsigned __iomem *addr); void (*write)(unsigned __iomem *addr, u32 val); }; |