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

pull/13651/head
Ivan Grokhotkov 2024-04-04 14:59:28 +02:00
rodzic 295f908ef2
commit 2bd1a8706d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1E050E141B280628
2 zmienionych plików z 33 dodań i 1 usunięć

Wyświetl plik

@ -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)"

Wyświetl plik

@ -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 = {