aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-02-26 22:19:09 +0000
committeredolomb <none@example.com>2018-02-26 22:19:09 +0000
commitfb42b5f87eda639173667168f070e80e68097ba4 (patch)
treed67d3f3fe8e368b174d9cd0bea56fff42beccd57
parent587c2eda5f0b5b4c11351e4e61f8f5e54691fe42 (diff)
downloadChibiOS-fb42b5f87eda639173667168f070e80e68097ba4.tar.gz
ChibiOS-fb42b5f87eda639173667168f070e80e68097ba4.tar.bz2
ChibiOS-fb42b5f87eda639173667168f070e80e68097ba4.zip
Modified security of SFC, SFR, L2CC, SFRBU, CHIPID
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11557 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/hal_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
index 707fed5cc..f62a63dd6 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
+++ b/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c
@@ -76,6 +76,11 @@ void hal_lld_init(void) {
/* Configures PMC and RTC as secure */
mtxConfigPeriphSecurity(MATRIX1, ID_SYSC, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_SFC, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_SFR, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX0, ID_L2CC, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_SFRBU, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_CHIPID, SECURE_PER);
/* Enabling matrix clock */
pmcEnableH32MX();