change(soc): remove no longer used mmu.h on p4

This commit is contained in:
Armando
2023-08-31 12:45:08 +08:00
parent de77ab3061
commit cbe4470a1b
4 changed files with 5 additions and 24 deletions

View File

@@ -504,7 +504,7 @@ void IRAM_ATTR call_start_cpu0(void)
esp_restart();
}
#if CONFIG_ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE
#if ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE
#if CONFIG_APP_BUILD_TYPE_ELF_RAM
// For RAM loadable ELF case, we don't need to reserve IROM/DROM as instructions and data
// are all in internal RAM. If the RAM loadable ELF has any requirement to memory map the
@@ -521,7 +521,7 @@ void IRAM_ATTR call_start_cpu0(void)
/* Configure the Cache MMU size for instruction and rodata in flash. */
Cache_Set_IDROM_MMU_Size(cache_mmu_irom_size, CACHE_DROM_MMU_MAX_END - cache_mmu_irom_size);
#endif // CONFIG_ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE
#endif // ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE
#if CONFIG_ESPTOOLPY_OCT_FLASH && !CONFIG_ESPTOOLPY_FLASH_MODE_AUTO_DETECT
bool efuse_opflash_en = efuse_ll_get_flash_type();

View File

@@ -1,21 +0,0 @@
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#include "soc/ext_mem_defs.h"
#include "soc/soc.h"
#ifdef __cplusplus
extern "C" {
#endif
//To delete this file
//TODO: IDF-7686
#ifdef __cplusplus
}
#endif

View File

@@ -12,10 +12,13 @@
#include "sdkconfig.h"
#include "esp_attr.h"
#include "esp_log.h"
#include "esp_rom_caps.h"
#include "hal/mmu_ll.h"
#include "hal/mmu_hal.h"
#include "hal/cache_hal.h"
#if ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE
#include "soc/mmu.h"
#endif
#include "esp_private/esp_mmu_map_private.h"
#include "esp_mmu_map.h"

View File

@@ -256,7 +256,6 @@ components/soc/esp32c6/include/soc/mmu.h
components/soc/esp32h2/include/soc/ext_mem_defs.h
components/soc/esp32h2/include/soc/mmu.h
components/soc/esp32p4/include/soc/ext_mem_defs.h
components/soc/esp32p4/include/soc/mmu.h
components/spi_flash/include/esp_private/spi_flash_os.h
### To be fixed: files which don't compile for esp32s2 target: