mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
Merge "feat(plat/mediatek/mpu): add MPU support for DSP" into integration
This commit is contained in:
commit
b085b990ed
1 changed files with 12 additions and 1 deletions
|
@ -117,7 +117,7 @@ void emi_mpu_init(void)
|
|||
NO_PROT, FORBIDDEN, FORBIDDEN, NO_PROT);
|
||||
emi_mpu_set_protection(®ion_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(®ion_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(®ion_info);
|
||||
|
||||
dump_emi_mpu_regions();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue