1 /* 2 * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #include <stdlib.h> 7 #include <stdint.h> 8 #include "sdkconfig.h" 9 #include "soc/ext_mem_defs.h" 10 #include "../ext_mem_layout.h" 11 12 /** 13 * The start addresses in this list should always be sorted from low to high, as MMU driver will need to 14 * coalesce adjacent regions 15 */ 16 const mmu_mem_region_t g_mmu_mem_regions[SOC_MMU_LINEAR_ADDRESS_REGION_NUM] = { 17 [0] = { 18 .start = SOC_MMU_IRAM0_LINEAR_ADDRESS_LOW, 19 .end = SOC_MMU_IRAM0_LINEAR_ADDRESS_HIGH, 20 .size = BUS_SIZE(SOC_MMU_IRAM0_LINEAR), 21 .bus_id = CACHE_BUS_IBUS0 | CACHE_BUS_DBUS0, 22 .targets = MMU_TARGET_FLASH0, 23 .caps = MMU_MEM_CAP_EXEC | MMU_MEM_CAP_READ | MMU_MEM_CAP_32BIT | MMU_MEM_CAP_8BIT, 24 }, 25 }; 26