forked from espressif/esp-idf
test(spi_flash): Enable spi_flash related test on esp32p4
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
|
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
|
||||||
|
|
||||||
components/spi_flash/test_apps/esp_flash:
|
components/spi_flash/test_apps/esp_flash:
|
||||||
disable:
|
|
||||||
- if: IDF_TARGET == "esp32p4"
|
|
||||||
temporary: true
|
|
||||||
reason: target esp32p4 is not supported yet # TODO: IDF-7499
|
|
||||||
depends_filepatterns:
|
depends_filepatterns:
|
||||||
- components/bootloader_support/bootloader_flash/**/*
|
- components/bootloader_support/bootloader_flash/**/*
|
||||||
depends_components:
|
depends_components:
|
||||||
@@ -28,9 +24,6 @@ components/spi_flash/test_apps/flash_encryption:
|
|||||||
components/spi_flash/test_apps/flash_suspend:
|
components/spi_flash/test_apps/flash_suspend:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_SPI_MEM_SUPPORT_AUTO_SUSPEND != 1
|
- if: SOC_SPI_MEM_SUPPORT_AUTO_SUSPEND != 1
|
||||||
- if: IDF_TARGET == "esp32p4"
|
|
||||||
temporary: true
|
|
||||||
reason: target esp32p4 is not supported yet # TODO: IDF-7499
|
|
||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET != "esp32c3"
|
- if: IDF_TARGET != "esp32c3"
|
||||||
temporary: true
|
temporary: true
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
|
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
|
||||||
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
|
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
|
||||||
|
@@ -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: Unlicense OR CC0-1.0
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
*/
|
*/
|
||||||
@@ -97,6 +97,24 @@
|
|||||||
#define FSPI_PIN_NUM_WP 5
|
#define FSPI_PIN_NUM_WP 5
|
||||||
#define FSPI_PIN_NUM_CS 17
|
#define FSPI_PIN_NUM_CS 17
|
||||||
|
|
||||||
|
// Just use the same pins for HSPI
|
||||||
|
#define HSPI_PIN_NUM_MOSI FSPI_PIN_NUM_MOSI
|
||||||
|
#define HSPI_PIN_NUM_MISO FSPI_PIN_NUM_MISO
|
||||||
|
#define HSPI_PIN_NUM_CLK FSPI_PIN_NUM_CLK
|
||||||
|
#define HSPI_PIN_NUM_HD FSPI_PIN_NUM_HD
|
||||||
|
#define HSPI_PIN_NUM_WP FSPI_PIN_NUM_WP
|
||||||
|
#define HSPI_PIN_NUM_CS FSPI_PIN_NUM_CS
|
||||||
|
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32P4
|
||||||
|
|
||||||
|
// Normal IOMUX pins
|
||||||
|
#define FSPI_PIN_NUM_MOSI 8
|
||||||
|
#define FSPI_PIN_NUM_MISO 10
|
||||||
|
#define FSPI_PIN_NUM_CLK 9
|
||||||
|
#define FSPI_PIN_NUM_HD 6
|
||||||
|
#define FSPI_PIN_NUM_WP 11
|
||||||
|
#define FSPI_PIN_NUM_CS 7
|
||||||
|
|
||||||
// Just use the same pins for HSPI
|
// Just use the same pins for HSPI
|
||||||
#define HSPI_PIN_NUM_MOSI FSPI_PIN_NUM_MOSI
|
#define HSPI_PIN_NUM_MOSI FSPI_PIN_NUM_MOSI
|
||||||
#define HSPI_PIN_NUM_MISO FSPI_PIN_NUM_MISO
|
#define HSPI_PIN_NUM_MISO FSPI_PIN_NUM_MISO
|
||||||
|
@@ -122,7 +122,7 @@ TEST_CASE("flash write and erase work both on PRO CPU and on APP CPU", "[spi_fla
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This test is disabled on S3 with legacy impl - IDF-3505
|
// TODO: This test is disabled on S3 with legacy impl - IDF-3505
|
||||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32, ESP32S2, ESP32S3, ESP32C3)
|
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32, ESP32S2, ESP32S3, ESP32C3, ESP32P4)
|
||||||
|
|
||||||
#if portNUM_PROCESSORS > 1
|
#if portNUM_PROCESSORS > 1
|
||||||
TEST_CASE("spi_flash deadlock with high priority busy-waiting task", "[spi_flash][esp_flash]")
|
TEST_CASE("spi_flash deadlock with high priority busy-waiting task", "[spi_flash][esp_flash]")
|
||||||
|
@@ -6,7 +6,6 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='esp32p4 support TBD') # TODO: IDF-8984
|
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'config',
|
'config',
|
||||||
|
Reference in New Issue
Block a user