feat(sdmmc): add test config for ESP32-P4 EV board

This commit is contained in:
Ivan Grokhotkov
2024-04-04 14:59:28 +02:00
parent 295f908ef2
commit 2bd1a8706d
2 changed files with 33 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ menu "SDMMC Test Board Configuration"
bool "ESP32-C3 breakout board"
depends on IDF_TARGET_ESP32C3
config SDMMC_BOARD_ESP32P4_EV_BOARD
bool "ESP32-P4 Function EV Board"
depends on IDF_TARGET_ESP32P4
config SDMMC_BOARD_CUSTOM_SD
depends on SOC_SDMMC_HOST_SUPPORTED
bool "Custom SD (choose pins)"

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -318,6 +318,34 @@ static const sdmmc_test_board_info_t s_board_info = {
.card_power_set = card_power_set_esp32c3_breakout
};
#elif CONFIG_SDMMC_BOARD_ESP32P4_EV_BOARD
static const sdmmc_test_board_info_t s_board_info = {
.name = "ESP32-P4 Function EV Board",
.slot = {
{
.slot_exists = false
},
{
.slot_exists = true,
.bus_width = 4,
.clk = 43,
.cmd_mosi = 44,
.d0_miso = 39,
.d1 = 40,
.d2 = 41,
.d3_cs = 42,
.d4 = GPIO_NUM_NC,
.d5 = GPIO_NUM_NC,
.d6 = GPIO_NUM_NC,
.d7 = GPIO_NUM_NC,
.cd = GPIO_NUM_NC,
.wp = GPIO_NUM_NC,
.unused_pin = 2,
}
},
};
#elif CONFIG_SDMMC_BOARD_CUSTOM_SD
static const sdmmc_test_board_info_t s_board_info = {