From cfa4beb661cfd062d9184d42805214a3ac28634f Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Mon, 26 Apr 2021 09:55:39 +0800 Subject: [PATCH] test_sd: merge emmc SDR/DDR test cases of 4-bit mode --- components/sdmmc/test/test_sd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/sdmmc/test/test_sd.c b/components/sdmmc/test/test_sd.c index 6a896d8b07..2a5653d517 100644 --- a/components/sdmmc/test/test_sd.c +++ b/components/sdmmc/test/test_sd.c @@ -133,20 +133,19 @@ TEST_CASE("probe SD, slot 1, 1-bit", "[sd][test_env=UT_T1_SDMODE]") } #ifdef WITH_EMMC_TEST -TEST_CASE("probe eMMC, slot 0, 4-bit, DDR", "[sd][test_env=EMMC]") -{ - probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_HIGHSPEED, 1); -} - TEST_CASE("probe eMMC, slot 0, 4-bit", "[sd][test_env=EMMC]") { + //Test with SDR probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_PROBING, 0); probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_DEFAULT, 0); probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_HIGHSPEED, 0); + //Test with DDR + probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_HIGHSPEED, 1); } TEST_CASE("probe eMMC, slot 0, 8-bit", "[sd][test_env=EMMC]") { + //8-bit DDR not supported yet, test with SDR only probe_sd(SDMMC_HOST_SLOT_0, 8, SDMMC_FREQ_PROBING, 0); probe_sd(SDMMC_HOST_SLOT_0, 8, SDMMC_FREQ_DEFAULT, 0); probe_sd(SDMMC_HOST_SLOT_0, 8, SDMMC_FREQ_HIGHSPEED, 0);