diff --git a/soc/ite/ec/common/CMakeLists.txt b/soc/ite/ec/common/CMakeLists.txt index 120b54fe2d7..39f3ded8328 100644 --- a/soc/ite/ec/common/CMakeLists.txt +++ b/soc/ite/ec/common/CMakeLists.txt @@ -1,10 +1,8 @@ zephyr_include_directories(.) zephyr_sources( - check_regs.c soc_irq.S soc_common_irq.c - vector.S ) zephyr_sources_ifdef(CONFIG_PM power.c) diff --git a/soc/ite/ec/it8xxx2/CMakeLists.txt b/soc/ite/ec/it8xxx2/CMakeLists.txt index 425642c1727..9d101f2b83a 100644 --- a/soc/ite/ec/it8xxx2/CMakeLists.txt +++ b/soc/ite/ec/it8xxx2/CMakeLists.txt @@ -1,4 +1,4 @@ -zephyr_sources(soc.c) +zephyr_sources(soc.c check_regs.c vector.S) zephyr_include_directories(.) zephyr_library_sources_ifndef(CONFIG_RISCV_ISA_EXT_M __arithmetic.S) diff --git a/soc/ite/ec/common/check_regs.c b/soc/ite/ec/it8xxx2/check_regs.c similarity index 100% rename from soc/ite/ec/common/check_regs.c rename to soc/ite/ec/it8xxx2/check_regs.c diff --git a/soc/ite/ec/common/chip_chipregs.h b/soc/ite/ec/it8xxx2/chip_chipregs.h similarity index 100% rename from soc/ite/ec/common/chip_chipregs.h rename to soc/ite/ec/it8xxx2/chip_chipregs.h diff --git a/soc/ite/ec/common/vector.S b/soc/ite/ec/it8xxx2/vector.S similarity index 100% rename from soc/ite/ec/common/vector.S rename to soc/ite/ec/it8xxx2/vector.S diff --git a/tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/chip_chipregs.h b/tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/chip_chipregs.h index 67c86ccdc40..f7c3b91f034 100644 --- a/tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/chip_chipregs.h +++ b/tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/chip_chipregs.h @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include <../soc/ite/ec/common/chip_chipregs.h> +#include <../soc/ite/ec/it8xxx2/chip_chipregs.h> /* * Macros for emulated hardware registers access.