mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-01 14:34:31 +00:00
feat(esp32p4): support eco5 on fpga
This commit is contained in:

committed by
Armando (Dou Yiwen)

parent
76d24d2fe5
commit
dfb0662de2
@@ -905,28 +905,3 @@ esp_err_t esp_enable_cache_wrap(bool icache_wrap_enable)
|
||||
return ESP_OK;
|
||||
}
|
||||
#endif // CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C2
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32P4
|
||||
//TODO: IDF-5670
|
||||
void IRAM_ATTR esp_config_l2_cache_mode(void)
|
||||
{
|
||||
cache_size_t cache_size;
|
||||
cache_line_size_t cache_line_size;
|
||||
#if CONFIG_CACHE_L2_CACHE_128KB
|
||||
cache_size = CACHE_SIZE_128K;
|
||||
#elif CONFIG_CACHE_L2_CACHE_256KB
|
||||
cache_size = CACHE_SIZE_256K;
|
||||
#else
|
||||
cache_size = CACHE_SIZE_512K;
|
||||
#endif
|
||||
|
||||
#if CONFIG_CACHE_L2_CACHE_LINE_64B
|
||||
cache_line_size = CACHE_LINE_SIZE_64B;
|
||||
#else
|
||||
cache_line_size = CACHE_LINE_SIZE_128B;
|
||||
#endif
|
||||
|
||||
Cache_Set_L2_Cache_Mode(cache_size, 8, cache_line_size);
|
||||
Cache_Invalidate_All(CACHE_MAP_L2_CACHE);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user