Skip to content

Commit 746c65a

Browse files
Andy Rossnashif
authored andcommitted
soc/intel_adsp: Move KERNEL_COHERENCE to cavs15
Only the CAVS 1.5 linker script has full support for the coherence features, don't advertise it on the other SoC's yet. Signed-off-by: Andy Ross <[email protected]>
1 parent 015b4f7 commit 746c65a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

arch/xtensa/include/kernel_arch_func.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static inline void arch_switch(void *switch_to, void **switched_from)
6666
/* FIXME: we don't have a framework for including this from the SoC
6767
* layer, so we define it in the arch code here.
6868
*/
69-
#ifdef CONFIG_SOC_FAMILY_INTEL_ADSP
69+
#if defined(CONFIG_SOC_FAMILY_INTEL_ADSP) && defined(CONFIG_KERNEL_COHERENCE)
7070
static inline bool arch_mem_coherent(void *ptr)
7171
{
7272
size_t addr = (size_t) ptr;

soc/xtensa/intel_adsp/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
config SOC_FAMILY_INTEL_ADSP
77
bool
8-
select ARCH_HAS_COHERENCE
98

109
if SOC_FAMILY_INTEL_ADSP
1110

soc/xtensa/intel_adsp/cavs_v15/Kconfig.series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ config SOC_SERIES_INTEL_CAVS_V15
99
select XTENSA_RESET_VECTOR
1010
select XTENSA_USE_CORE_CRT1
1111
select ATOMIC_OPERATIONS_BUILTIN
12+
select ARCH_HAS_COHERENCE
1213
help
1314
Intel CAVS v1.5

0 commit comments

Comments
 (0)