Add this macro at platform level so it can be used by others.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/platform/baytrail/include/platform/platform.h | 3 +++ src/platform/baytrail/platform.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/platform/baytrail/include/platform/platform.h b/src/platform/baytrail/include/platform/platform.h index dca0c47..bc90564 100644 --- a/src/platform/baytrail/include/platform/platform.h +++ b/src/platform/baytrail/include/platform/platform.h @@ -76,6 +76,9 @@ struct reef; /* WorkQ window size in microseconds */ #define PLATFORM_WORKQ_WINDOW 2000
+/* platform WorkQ clock */ +#define PLATFORM_WORKQ_CLOCK CLK_SSP + /* local buffer size of DMA tracing */ #define DMA_TRACE_LOCAL_SIZE HOST_PAGE_SIZE
diff --git a/src/platform/baytrail/platform.c b/src/platform/baytrail/platform.c index cd884a8..5cda2da 100644 --- a/src/platform/baytrail/platform.c +++ b/src/platform/baytrail/platform.c @@ -78,7 +78,7 @@ static struct work_queue_timesource platform_generic_queue = { .id = TIMER3, /* external timer */ .irq = IRQ_NUM_EXT_TIMER, }, - .clk = CLK_SSP, + .clk = PLATFORM_WORKQ_CLOCK, .notifier = NOTIFIER_ID_SSP_FREQ, .timer_set = platform_timer_set, .timer_clear = platform_timer_clear,