feat(sdmmc): add esp32s31 support

Enable SDMMC host support on ESP32-S31 across HAL, SOC caps, tests, examples, and documentation.
This commit is contained in:
armando
2026-05-21 09:09:28 +08:00
parent 19a716086f
commit f408e1a8bc
38 changed files with 1813 additions and 218 deletions
+10 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -12,4 +12,13 @@
void sdmmc_hal_init(sdmmc_hal_context_t *hal)
{
hal->dev = SDMMC_LL_GET_HW(0);
sdmmc_ll_mem_power_by_pmu(hal->dev);
sdmmc_ll_mem_set_low_power_mode(hal->dev, SDMMC_LL_MEM_LP_MODE_SHUT_DOWN); // power down memory during low power stage
}
void sdmmc_hal_deinit(sdmmc_hal_context_t *hal)
{
sdmmc_ll_mem_force_low_power(hal->dev); // power off SDMMC power domain forcefully
hal->dev = NULL;
}