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:
parent
6a09037efd
commit
99876fa529
@ -64,6 +64,9 @@
|
||||
#define CONFIG_DEVICEPCIE_BASEADDR 0x4010000000
|
||||
#define CONFIG_DEVICEPCIE_SIZE MB(256)
|
||||
|
||||
#define CONFIG_IVSHMEM_BASEADDR 0x8040400000
|
||||
#define CONFIG_IVSHMEM_SIZE MB(256)
|
||||
|
||||
#define CONFIG_LOAD_BASE 0x40280000
|
||||
|
||||
#define MPID_TO_CLUSTER_ID(mpid) ((mpid) & ~0xff)
|
||||
|
@ -263,7 +263,7 @@
|
||||
* to these memory regions.
|
||||
*/
|
||||
|
||||
#define CONFIG_MAX_XLAT_TABLES 7
|
||||
#define CONFIG_MAX_XLAT_TABLES 10
|
||||
|
||||
/* Virtual address space size
|
||||
* Allows choosing one of multiple possible virtual address
|
||||
|
@ -67,6 +67,11 @@ static const struct arm_mmu_region g_mmu_regions[] =
|
||||
CONFIG_DEVICEPCIE_BASEADDR,
|
||||
CONFIG_DEVICEPCIE_SIZE,
|
||||
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 =
|
||||
|
Loading…
Reference in New Issue
Block a user