refactor(esp_hw_support): move system_periph_retention from soc to esp_hw_support

This commit is contained in:
wuzhenghui
2026-06-15 17:09:58 +08:00
parent 67fdf46105
commit f2d3448fa2
18 changed files with 20 additions and 21 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ if(NOT non_os_build)
) )
if(CONFIG_SOC_PAU_SUPPORTED AND CONFIG_SOC_PM_SUPPORT_TOP_PD) if(CONFIG_SOC_PAU_SUPPORTED AND CONFIG_SOC_PM_SUPPORT_TOP_PD)
list(APPEND srcs "sleep_system_peripheral.c") list(APPEND srcs "sleep_system_peripheral.c")
list(APPEND srcs "port/${target}/peripheral_domain_pd.c") list(APPEND srcs "port/${target}/peripheral_domain_pd.c"
"port/${target}/system_periph_retention.c")
endif() endif()
endif() endif()
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "soc/regdma.h" #include "soc/regdma.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,9 +1,10 @@
/* /*
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "sdkconfig.h"
#include "soc/cache_reg.h" #include "soc/cache_reg.h"
#include "soc/gpio_reg.h" #include "soc/gpio_reg.h"
#include "soc/hp_system_reg.h" #include "soc/hp_system_reg.h"
@@ -1,7 +1,7 @@
/* /*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#pragma once #pragma once
@@ -1,8 +1,9 @@
/* /*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD * SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
* *
* SPDX-License-Identifier: Apache-2.0 OR MIT * SPDX-License-Identifier: Apache-2.0
*/ */
#include "sdkconfig.h"
#include "soc/cache_reg.h" #include "soc/cache_reg.h"
#include "soc/gpio_reg.h" #include "soc/gpio_reg.h"
#include "soc/hp_system_reg.h" #include "soc/hp_system_reg.h"
-4
View File
@@ -51,10 +51,6 @@ if(CONFIG_SOC_MPI_SUPPORTED)
list(APPEND srcs "${target_folder}/mpi_periph.c") list(APPEND srcs "${target_folder}/mpi_periph.c")
endif() endif()
if(CONFIG_SOC_PAU_SUPPORTED AND CONFIG_SOC_LIGHT_SLEEP_SUPPORTED AND CONFIG_SOC_PM_SUPPORT_TOP_PD)
list(APPEND srcs "${target_folder}/system_retention_periph.c")
endif()
if(CONFIG_SOC_BOD_SUPPORTED) if(CONFIG_SOC_BOD_SUPPORTED)
list(APPEND srcs "${target_folder}/power_supply_periph.c") list(APPEND srcs "${target_folder}/power_supply_periph.c")
endif() endif()