diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2017-02-24 16:09:40 +0200 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2017-08-25 18:48:00 +0300 |
commit | a0e7df335afd2a8a8a688251ffee375b58b6517c (patch) | |
tree | 6639e55ee5fb65286bde48fdbfa6f4ab16890077 /drivers/hwtracing/intel_th/gth.h | |
parent | 29e15e83a99cdc13d0d38de558fbea641f8fdda8 (diff) | |
download | linux-a0e7df335afd2a8a8a688251ffee375b58b6517c.tar.gz linux-a0e7df335afd2a8a8a688251ffee375b58b6517c.tar.xz |
intel_th: Perform time resync on capture start
On some devices (TH 2.x devices at the moment), the internal time counter
is initially not synchronized to the global crystal clock, so the time
stamps it produces will not be useful. In this case, the driver needs
to force the time counter resync.
This applies the workaround to relevant devices.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th/gth.h')
-rw-r--r-- | drivers/hwtracing/intel_th/gth.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwtracing/intel_th/gth.h b/drivers/hwtracing/intel_th/gth.h index 56f0d2620577..f3d234251a12 100644 --- a/drivers/hwtracing/intel_th/gth.h +++ b/drivers/hwtracing/intel_th/gth.h @@ -55,9 +55,14 @@ enum { REG_GTH_SCRPD1 = 0xe4, /* ScratchPad[1] */ REG_GTH_SCRPD2 = 0xe8, /* ScratchPad[2] */ REG_GTH_SCRPD3 = 0xec, /* ScratchPad[3] */ + REG_TSCU_TSUCTRL = 0x2000, /* TSCU control register */ + REG_TSCU_TSCUSTAT = 0x2004, /* TSCU status register */ }; /* waiting for Pipeline Empty bit(s) to assert for GTH */ #define GTH_PLE_WAITLOOP_DEPTH 10000 +#define TSUCTRL_CTCRESYNC BIT(0) +#define TSCUSTAT_CTCSYNCING BIT(1) + #endif /* __INTEL_TH_GTH_H__ */ |