kopia lustrzana https://github.com/espressif/esp-idf
57 wiersze
1.4 KiB
C
57 wiersze
1.4 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc_caps.h"
|
|
#include "sdkconfig.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief PMU modes of HP system
|
|
*/
|
|
typedef enum {
|
|
PMU_MODE_HP_ACTIVE = 0, /*!< PMU in HP_ACTIVE mode */
|
|
PMU_MODE_HP_MODEM, /*!< PMU in HP_MODEM mode */
|
|
PMU_MODE_HP_SLEEP, /*!< PMU in HP_SLEEP mode */
|
|
PMU_MODE_HP_MAX,
|
|
} pmu_hp_mode_t;
|
|
|
|
/**
|
|
* @brief PMU modes of LP system
|
|
*/
|
|
typedef enum {
|
|
PMU_MODE_LP_ACTIVE = 0, /*!< PMU in LP_ACTIVE mode */
|
|
PMU_MODE_LP_SLEEP, /*!< PMU in LP_SLEEP mode */
|
|
PMU_MODE_LP_MAX,
|
|
} pmu_lp_mode_t;
|
|
|
|
#if CONFIG_IDF_TARGET_ESP32P4
|
|
typedef enum {
|
|
PMU_HP_PD_TOP = 0, /*!< Power domain of digital top */
|
|
PMU_HP_PD_CNNT = 1, /*!< Power domain of high-speed IO peripherals such as USB/SDIO/Ethernet etc.*/
|
|
PMU_HP_PD_HPMEM = 2,
|
|
} pmu_hp_power_domain_t;
|
|
#else
|
|
typedef enum {
|
|
PMU_HP_PD_TOP = 0, /*!< Power domain of digital top */
|
|
#if SOC_PM_SUPPORT_HP_AON_PD
|
|
PMU_HP_PD_HP_AON = 1, /*!< Power domain of always-on */
|
|
#endif
|
|
PMU_HP_PD_CPU = 2, /*!< Power domain of HP CPU */
|
|
PMU_HP_PD_RESERVED = 3, /*!< Reserved power domain */
|
|
PMU_HP_PD_WIFI = 4, /*!< Power domain of WIFI */
|
|
} pmu_hp_power_domain_t;
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|