diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2016-05-03 13:33:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-03 17:59:30 -0400 |
commit | a8ab4268e0db93c564ee6ccb770bb3d53af24be9 (patch) | |
tree | 7dc6b18586e1a3ecf9fbe60320bda66d803a4c6a /drivers/hwtracing | |
parent | 4c324b5f0e8a692c8d077da9d18533820c2ab636 (diff) |
coresight: tmc: cleaning up header file
This patch first move the TMC_STS_TMCREADY_BIT and
TMC_FFCR_FLUSHMAN_BIT defines to their respective section.
It also removes TMC_FFCR_FLUSHMAN, since the same result
can easily be obtained using the BIT() macro.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tmc.c | 2 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tmc.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c index f9a6624ab531..07e2809d832b 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.c +++ b/drivers/hwtracing/coresight/coresight-tmc.c | |||
@@ -50,7 +50,7 @@ static void tmc_flush_and_stop(struct tmc_drvdata *drvdata) | |||
50 | ffcr = readl_relaxed(drvdata->base + TMC_FFCR); | 50 | ffcr = readl_relaxed(drvdata->base + TMC_FFCR); |
51 | ffcr |= TMC_FFCR_STOP_ON_FLUSH; | 51 | ffcr |= TMC_FFCR_STOP_ON_FLUSH; |
52 | writel_relaxed(ffcr, drvdata->base + TMC_FFCR); | 52 | writel_relaxed(ffcr, drvdata->base + TMC_FFCR); |
53 | ffcr |= TMC_FFCR_FLUSHMAN; | 53 | ffcr |= BIT(TMC_FFCR_FLUSHMAN_BIT); |
54 | writel_relaxed(ffcr, drvdata->base + TMC_FFCR); | 54 | writel_relaxed(ffcr, drvdata->base + TMC_FFCR); |
55 | /* Ensure flush completes */ | 55 | /* Ensure flush completes */ |
56 | if (coresight_timeout(drvdata->base, | 56 | if (coresight_timeout(drvdata->base, |
diff --git a/drivers/hwtracing/coresight/coresight-tmc.h b/drivers/hwtracing/coresight/coresight-tmc.h index 49718b4a9788..5a60830c8db5 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.h +++ b/drivers/hwtracing/coresight/coresight-tmc.h | |||
@@ -49,6 +49,7 @@ | |||
49 | /* TMC_CTL - 0x020 */ | 49 | /* TMC_CTL - 0x020 */ |
50 | #define TMC_CTL_CAPT_EN BIT(0) | 50 | #define TMC_CTL_CAPT_EN BIT(0) |
51 | /* TMC_STS - 0x00C */ | 51 | /* TMC_STS - 0x00C */ |
52 | #define TMC_STS_TMCREADY_BIT 2 | ||
52 | #define TMC_STS_TRIGGERED BIT(1) | 53 | #define TMC_STS_TRIGGERED BIT(1) |
53 | /* TMC_AXICTL - 0x110 */ | 54 | /* TMC_AXICTL - 0x110 */ |
54 | #define TMC_AXICTL_PROT_CTL_B0 BIT(0) | 55 | #define TMC_AXICTL_PROT_CTL_B0 BIT(0) |
@@ -56,16 +57,14 @@ | |||
56 | #define TMC_AXICTL_SCT_GAT_MODE BIT(7) | 57 | #define TMC_AXICTL_SCT_GAT_MODE BIT(7) |
57 | #define TMC_AXICTL_WR_BURST_16 0xF00 | 58 | #define TMC_AXICTL_WR_BURST_16 0xF00 |
58 | /* TMC_FFCR - 0x304 */ | 59 | /* TMC_FFCR - 0x304 */ |
60 | #define TMC_FFCR_FLUSHMAN_BIT 6 | ||
59 | #define TMC_FFCR_EN_FMT BIT(0) | 61 | #define TMC_FFCR_EN_FMT BIT(0) |
60 | #define TMC_FFCR_EN_TI BIT(1) | 62 | #define TMC_FFCR_EN_TI BIT(1) |
61 | #define TMC_FFCR_FON_FLIN BIT(4) | 63 | #define TMC_FFCR_FON_FLIN BIT(4) |
62 | #define TMC_FFCR_FON_TRIG_EVT BIT(5) | 64 | #define TMC_FFCR_FON_TRIG_EVT BIT(5) |
63 | #define TMC_FFCR_FLUSHMAN BIT(6) | ||
64 | #define TMC_FFCR_TRIGON_TRIGIN BIT(8) | 65 | #define TMC_FFCR_TRIGON_TRIGIN BIT(8) |
65 | #define TMC_FFCR_STOP_ON_FLUSH BIT(12) | 66 | #define TMC_FFCR_STOP_ON_FLUSH BIT(12) |
66 | 67 | ||
67 | #define TMC_STS_TMCREADY_BIT 2 | ||
68 | #define TMC_FFCR_FLUSHMAN_BIT 6 | ||
69 | 68 | ||
70 | enum tmc_config_type { | 69 | enum tmc_config_type { |
71 | TMC_CONFIG_TYPE_ETB, | 70 | TMC_CONFIG_TYPE_ETB, |