boards/risc-v/esp32c3: Enable SPI Flash's MTD block driver

This commit enables the SPI Flash's MTD block driver. This block
driver enables testing the SPI Flash device without any associated
filesystems.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
Tiago Medicci Serrano 2025-03-27 11:49:48 -03:00 committed by Xiang Xiao
parent 440d4a688a
commit 6e57b93821

View file

@ -379,6 +379,13 @@ static int init_storage_partition(void)
return ret;
}
ret = ftl_initialize(0, mtd);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize the FTL layer: %d\n",
ret);
return ret;
}
#endif
return ret;