1 /*
2  * SPDX-FileCopyrightText: 2021-2022 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 #include "hal/mmu_types.h"
12 
13 /**
14  * The start addresses in this list should always be sorted from low to high, as MMU driver will need to
15  * coalesce adjacent regions
16  */
17 const mmu_mem_region_t g_mmu_mem_regions[SOC_MMU_LINEAR_ADDRESS_REGION_NUM] = {
18     [0] = {
19         .start = SOC_MMU_IRAM0_LINEAR_ADDRESS_LOW,
20         .end = SOC_MMU_IRAM0_LINEAR_ADDRESS_HIGH,
21         .size = BUS_SIZE(SOC_MMU_IRAM0_LINEAR),
22         .bus_id = CACHE_BUS_IBUS0 | CACHE_BUS_DBUS0,
23         .targets = MMU_TARGET_FLASH0,
24         .caps = MMU_MEM_CAP_EXEC | MMU_MEM_CAP_READ | MMU_MEM_CAP_32BIT | MMU_MEM_CAP_8BIT,
25     },
26 };
27