feat(ldo): support s31 psram sdmmc power domain

Move S31 PSRAM/SDMMC power setup onto the common LDO path so shared users can control the domain consistently.
This commit is contained in:
armando
2026-05-21 09:09:14 +08:00
parent 09ff879535
commit 6d12e30433
12 changed files with 118 additions and 104 deletions
@@ -1,31 +0,0 @@
/*
* 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