arm64/mmu_region: add ivshmem mmu region for arm64

Now the ivhsmem memory region can be used in arm64

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2023-11-17 14:20:40 +08:00 committed by Xiang Xiao
parent 6a09037efd
commit 99876fa529
3 changed files with 9 additions and 1 deletions

View File

@ -64,6 +64,9 @@
#define CONFIG_DEVICEPCIE_BASEADDR 0x4010000000 #define CONFIG_DEVICEPCIE_BASEADDR 0x4010000000
#define CONFIG_DEVICEPCIE_SIZE MB(256) #define CONFIG_DEVICEPCIE_SIZE MB(256)
#define CONFIG_IVSHMEM_BASEADDR 0x8040400000
#define CONFIG_IVSHMEM_SIZE MB(256)
#define CONFIG_LOAD_BASE 0x40280000 #define CONFIG_LOAD_BASE 0x40280000
#define MPID_TO_CLUSTER_ID(mpid) ((mpid) & ~0xff) #define MPID_TO_CLUSTER_ID(mpid) ((mpid) & ~0xff)

View File

@ -263,7 +263,7 @@
* to these memory regions. * to these memory regions.
*/ */
#define CONFIG_MAX_XLAT_TABLES 7 #define CONFIG_MAX_XLAT_TABLES 10
/* Virtual address space size /* Virtual address space size
* Allows choosing one of multiple possible virtual address * Allows choosing one of multiple possible virtual address

View File

@ -67,6 +67,11 @@ static const struct arm_mmu_region g_mmu_regions[] =
CONFIG_DEVICEPCIE_BASEADDR, CONFIG_DEVICEPCIE_BASEADDR,
CONFIG_DEVICEPCIE_SIZE, CONFIG_DEVICEPCIE_SIZE,
MT_NORMAL | MT_RW | MT_SECURE), MT_NORMAL | MT_RW | MT_SECURE),
MMU_REGION_FLAT_ENTRY("IVSHMEM",
CONFIG_IVSHMEM_BASEADDR,
CONFIG_IVSHMEM_SIZE,
MT_NORMAL | MT_RW | MT_SECURE),
}; };
const struct arm_mmu_config g_mmu_config = const struct arm_mmu_config g_mmu_config =