From 09f25854b3b886af6b3449ae8e893958c960de0b Mon Sep 17 00:00:00 2001 From: Tim Lin Date: Fri, 28 Feb 2025 17:08:08 +0800 Subject: [PATCH] soc: Separate it8xxx2 related files from the common folder Some files should be separated from the common folder to each soc folder for future expansion of the chip. Signed-off-by: Tim Lin --- soc/ite/ec/common/CMakeLists.txt | 2 -- soc/ite/ec/it8xxx2/CMakeLists.txt | 2 +- soc/ite/ec/{common => it8xxx2}/check_regs.c | 0 soc/ite/ec/{common => it8xxx2}/chip_chipregs.h | 0 soc/ite/ec/{common => it8xxx2}/vector.S | 0 tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/chip_chipregs.h | 2 +- 6 files changed, 2 insertions(+), 4 deletions(-) rename soc/ite/ec/{common => it8xxx2}/check_regs.c (100%) rename soc/ite/ec/{common => it8xxx2}/chip_chipregs.h (100%) rename soc/ite/ec/{common => it8xxx2}/vector.S (100%) 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.