drivers: i2c: i2c_dw: only includ cmsis_core on ARM platforms

Only include cmsis_core.h on ARM platforms, including it unconditionally
as it is now causes a build failure on all other platforms, namely x86
on the weekly build run.

Tested with:

west build -p -b up_squared/apollo_lake tests/drivers/build_all/led
(and others)

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2025-06-10 16:56:50 +00:00 committed by Benjamin Cabé
commit 33f6b76110

View file

@ -8,7 +8,9 @@
*/
#include <zephyr/arch/cpu.h>
#ifdef CONFIG_CPU_CORTEX_M
#include <cmsis_core.h>
#endif
#include <soc.h>
#include <stddef.h>