soc: esp32s3: move cache mode call
Removed unused function declaration. Added missing include. Move Cache_Susped_DCache() call to proper function configuration call. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
02fc5e3f66
commit
5678512fe8
3 changed files with 2 additions and 6 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <esp_private/esp_mmu_map_private.h>
|
||||
#include <esp_private/mspi_timing_tuning.h>
|
||||
#include <esp_flash_internal.h>
|
||||
#include <esp_private/cache_utils.h>
|
||||
#include <sdkconfig.h>
|
||||
|
||||
#if CONFIG_ESP_SPIRAM
|
||||
|
|
|
@ -73,8 +73,4 @@ extern int esp_rom_Cache_Ibus_MMU_Set(uint32_t ext_ram, uint32_t vaddr, uint32_t
|
|||
extern uint8_t esp_rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
|
||||
extern void esp_rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
|
||||
|
||||
/* cache initialization functions */
|
||||
void esp_config_instruction_cache_mode(void);
|
||||
void esp_config_data_cache_mode(void);
|
||||
|
||||
#endif /* __SOC_H__ */
|
||||
|
|
|
@ -26,12 +26,11 @@ void IRAM_ATTR esp_config_instruction_cache_mode(void)
|
|||
rom_config_instruction_cache_mode(CONFIG_ESP32S3_INSTRUCTION_CACHE_SIZE,
|
||||
CONFIG_ESP32S3_ICACHE_ASSOCIATED_WAYS,
|
||||
CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_SIZE);
|
||||
|
||||
Cache_Suspend_DCache();
|
||||
}
|
||||
|
||||
void IRAM_ATTR esp_config_data_cache_mode(void)
|
||||
{
|
||||
Cache_Suspend_DCache();
|
||||
rom_config_data_cache_mode(CONFIG_ESP32S3_DATA_CACHE_SIZE,
|
||||
CONFIG_ESP32S3_DCACHE_ASSOCIATED_WAYS,
|
||||
CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue