psram: make psram wrap mode unavailable

This commit is contained in:
Armando 2021-11-08 15:47:30 +08:00
parent 2934010950
commit 021e8817cf
2 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,7 @@ menu "ESP32S3-Specific"
default 32 if ESP32S3_INSTRUCTION_CACHE_LINE_32B
config ESP32S3_INSTRUCTION_CACHE_WRAP
bool "Enable instruction cache wrap mode"
bool ## TODO IDF-4307
default "n"
help
If enabled, instruction cache will use wrap mode to read spi flash or spi ram.
@ -152,7 +152,7 @@ menu "ESP32S3-Specific"
default 64 if ESP32S3_DATA_CACHE_LINE_64B
config ESP32S3_DATA_CACHE_WRAP
bool "Enable data cache wrap mode"
bool ## TODO IDF-4307
default "n"
help
If enabled, data cache will use wrap mode to read spi flash or spi ram.

View File

@ -195,6 +195,7 @@ static void psram_disable_qio_mode(int spi_num)
false); /* whether is program/erase operation */
}
//TODO IDF-4307
//switch psram burst length(32 bytes or 1024 bytes)
//datasheet says it should be 1024 bytes by default
static void psram_set_wrap_burst_length(int spi_num, psram_cmd_mode_t mode)
@ -233,6 +234,7 @@ static void psram_reset_mode(int spi_num)
esp_err_t psram_enable_wrap(uint32_t wrap_size)
{
//TODO: IDF-4307
static uint32_t current_wrap_size = 0;
if (current_wrap_size == wrap_size) {
return ESP_OK;