From: Marcin Maka marcin.maka@linux.intel.com
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 --- src/arch/xtensa/include/arch/wait.h | 2 +- src/platform/cannonlake/include/platform/platform.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/arch/xtensa/include/arch/wait.h b/src/arch/xtensa/include/arch/wait.h index 2f6e4f5..e1cca01 100644 --- a/src/arch/xtensa/include/arch/wait.h +++ b/src/arch/xtensa/include/arch/wait.h @@ -30,7 +30,7 @@
#include <xtensa/xtruntime.h>
-#if defined(CONFIG_CANNONLAKE) +#if defined(PLATFORM_WAITI_DELAY)
static inline void arch_wait_for_interrupt(int level) { diff --git a/src/platform/cannonlake/include/platform/platform.h b/src/platform/cannonlake/include/platform/platform.h index c5bf42a..5853614 100644 --- a/src/platform/cannonlake/include/platform/platform.h +++ b/src/platform/cannonlake/include/platform/platform.h @@ -39,6 +39,8 @@
struct sof;
+#define PLATFORM_WAITI_DELAY 1 + #define PLATFORM_SSP_COUNT 3 #define MAX_GPDMA_COUNT 2