Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
b085b990
Commit
b085b990
authored
Jun 10, 2021
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Jun 10, 2021
Browse files
Merge "feat(plat/mediatek/mpu): add MPU support for DSP" into integration
parents
66bf006e
6c4973b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/mediatek/mt8192/drivers/emi_mpu/emi_mpu.c
View file @
b085b990
...
@@ -117,7 +117,7 @@ void emi_mpu_init(void)
...
@@ -117,7 +117,7 @@ void emi_mpu_init(void)
NO_PROT
,
FORBIDDEN
,
FORBIDDEN
,
NO_PROT
);
NO_PROT
,
FORBIDDEN
,
FORBIDDEN
,
NO_PROT
);
emi_mpu_set_protection
(
&
region_info
);
emi_mpu_set_protection
(
&
region_info
);
/*
Forbidden All
*/
/*
DSP protect address
*/
region_info
.
start
=
0x40000000ULL
;
/* dram base addr */
region_info
.
start
=
0x40000000ULL
;
/* dram base addr */
region_info
.
end
=
0x1FFFF0000ULL
;
region_info
.
end
=
0x1FFFF0000ULL
;
region_info
.
region
=
3
;
region_info
.
region
=
3
;
...
@@ -128,6 +128,17 @@ void emi_mpu_init(void)
...
@@ -128,6 +128,17 @@ void emi_mpu_init(void)
FORBIDDEN
,
FORBIDDEN
,
FORBIDDEN
,
NO_PROT
);
FORBIDDEN
,
FORBIDDEN
,
FORBIDDEN
,
NO_PROT
);
emi_mpu_set_protection
(
&
region_info
);
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
();
dump_emi_mpu_regions
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment