From 021e8817cf926a7015c73d7c8df96e7031663203 Mon Sep 17 00:00:00 2001 From: Armando Date: Mon, 8 Nov 2021 15:47:30 +0800 Subject: [PATCH] psram: make psram wrap mode unavailable --- components/esp32s3/Kconfig | 4 ++-- components/esp_hw_support/port/esp32s3/spiram_psram.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/esp32s3/Kconfig b/components/esp32s3/Kconfig index cfdebd2c5e..5034d652cc 100644 --- a/components/esp32s3/Kconfig +++ b/components/esp32s3/Kconfig @@ -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. diff --git a/components/esp_hw_support/port/esp32s3/spiram_psram.c b/components/esp_hw_support/port/esp32s3/spiram_psram.c index ec600d7666..280300a91d 100644 --- a/components/esp_hw_support/port/esp32s3/spiram_psram.c +++ b/components/esp_hw_support/port/esp32s3/spiram_psram.c @@ -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;