mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(psram): make IDF-15875 backport build clean on v5.5
Guard external-cache suspend for pure-ram apps where esp_cache_utils is not linked, and move esp32p4-only xip_psram sdkconfig options into a target-specific file to avoid unknown-kconfig failures on other chips.
This commit is contained in:
@@ -99,9 +99,14 @@ void IRAM_ATTR esp_rtc_init(void)
|
||||
*/
|
||||
static void IRAM_ATTR esp_clk_cpu_freq_set_config_isolated(const rtc_cpu_freq_config_t *config)
|
||||
{
|
||||
/* esp_cache_utils.c is not built for pure-ram apps. */
|
||||
#if !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP
|
||||
esp_cache_suspend_ext_mem_cache();
|
||||
#endif
|
||||
rtc_clk_cpu_freq_set_config(config);
|
||||
#if !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP
|
||||
esp_cache_resume_ext_mem_cache();
|
||||
#endif
|
||||
}
|
||||
|
||||
__attribute__((weak)) void esp_clk_init(void)
|
||||
|
||||
Reference in New Issue
Block a user