feat(ldo): Add ldo support for psram on esp32s31

This commit is contained in:
C.S.M
2026-04-01 16:31:35 +08:00
parent 3b428659a0
commit 62d5f34b53
10 changed files with 217 additions and 2 deletions
@@ -0,0 +1,31 @@
/*
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Configuration for PSRAM domain LDO supply initialization
*/
typedef struct {
uint32_t voltage_mv; /*!< PSRAM supply voltage in mV */
} esp_psram_power_cfg_t;
/**
* @brief Initialize the PSRAM supply (LDO voltage and power switch)
*
* @param config Configuration for the PSRAM supply
*/
void esp_psram_power_init(const esp_psram_power_cfg_t *config);
#ifdef __cplusplus
}
#endif