Merge "feat(plat/mediatek/mpu): add MPU support for DSP" into integration

This commit is contained in:
Mark Dykes 2021-06-10 00:09:13 +02:00 committed by TrustedFirmware Code Review
commit b085b990ed
1 changed files with 12 additions and 1 deletions

View File

@ -117,7 +117,7 @@ void emi_mpu_init(void)
NO_PROT, FORBIDDEN, FORBIDDEN, NO_PROT);
emi_mpu_set_protection(&region_info);
/* Forbidden All */
/* DSP protect address */
region_info.start = 0x40000000ULL; /* dram base addr */
region_info.end = 0x1FFFF0000ULL;
region_info.region = 3;
@ -128,6 +128,17 @@ void emi_mpu_init(void)
FORBIDDEN, FORBIDDEN, FORBIDDEN, NO_PROT);
emi_mpu_set_protection(&region_info);
/* Forbidden All */
region_info.start = 0x40000000ULL; /* dram base addr */
region_info.end = 0x1FFFF0000ULL;
region_info.region = 4;
SET_ACCESS_PERMISSION(region_info.apc, 1,
FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN,
FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN,
FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN,
FORBIDDEN, FORBIDDEN, FORBIDDEN, NO_PROT);
emi_mpu_set_protection(&region_info);
dump_emi_mpu_regions();
}