make spiram work

This commit is contained in:
Du Ya Yuan
2020-01-09 10:33:40 +08:00
committed by morris
parent 30a525aeb1
commit 0ad7602efe
3 changed files with 32 additions and 85 deletions

View File

@@ -139,11 +139,6 @@ void IRAM_ATTR call_start_cpu0(void)
extern void esp_config_instruction_cache_mode(void);
esp_config_instruction_cache_mode();
/* copy MMU table from ICache to DCache, so we can use DCache to access rodata later. */
#if CONFIG_ESP32S2_RODATA_USE_DATA_CACHE
MMU_Drom0_I2D_Copy();
#endif
/* If we need use SPIRAM, we should use data cache, or if we want to access rodata, we also should use data cache.
Configure the mode of data : cache size, cache associated ways, cache line size.
Enable data cache, so if we don't use SPIRAM, it just works. */