mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
refactoring(spi_flash): Move PSRAM frequency constraint macro from soc_caps.h to mspi_ll.h
- Rename SOC_SPI_MEM_PSRAM_FREQ_AXI_CONSTRAINED to MSPI_TIMING_LL_PSRAM_FREQ_AXI_CONSTRAINED - Move macro definition to chip-specific mspi_ll.h files (C5, C61, H4, P4, S31) - Update usage in clk_utils.c and esp_flash_spi_init.c - Remove old macro from all soc_caps.h files
This commit is contained in:
@@ -146,7 +146,7 @@ esp_flash_t *esp_flash_default_chip = NULL;
|
||||
// 1. Frequency limit workaround is enabled (CONFIG_SPI_FLASH_FREQ_LIMIT_C5_240MHZ)
|
||||
// 2. Flash frequency requires timing tuning (80MHz or 120MHz, i.e., > 40MHz)
|
||||
// 3. CPU frequency reduction will trigger MSPI timing tuning to enter low speed mode
|
||||
// This happens when: SOC_SPI_MEM_PSRAM_FREQ_AXI_CONSTRAINED && CONFIG_SPIRAM &&
|
||||
// This happens when: MSPI_TIMING_LL_PSRAM_FREQ_AXI_CONSTRAINED && CONFIG_SPIRAM &&
|
||||
// (target_cpu_freq < CONFIG_SPIRAM_SPEED)
|
||||
// Note: The runtime check for CPU freq < PSRAM speed is done in clk_utils.c,
|
||||
// which calls mspi_timing_change_speed_mode_cache_safe(true) to enter low speed mode.
|
||||
|
||||
Reference in New Issue
Block a user