Replacing #define for WAITI behavior.

A non-platform define may be easily shared by other platforms
without adding || define(CONFIG_...) in the arch code.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
Marcin Maka 2018-05-22 17:07:41 +01:00 committed by Liam Girdwood
parent 45e9bc422a
commit fba1f1b106
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@
#include <xtensa/xtruntime.h> #include <xtensa/xtruntime.h>
#if defined(CONFIG_CANNONLAKE) #if defined(PLATFORM_WAITI_DELAY)
static inline void arch_wait_for_interrupt(int level) static inline void arch_wait_for_interrupt(int level)
{ {

View File

@ -40,6 +40,8 @@
struct sof; struct sof;
#define PLATFORM_WAITI_DELAY 1
#define PLATFORM_SSP_COUNT 3 #define PLATFORM_SSP_COUNT 3
#define MAX_GPDMA_COUNT 2 #define MAX_GPDMA_COUNT 2