aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mpu/include/mpu.hpp4
-rw-r--r--drivers/mpu/src/mpu.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mpu/include/mpu.hpp b/drivers/mpu/include/mpu.hpp
index dff73b6..9f85788 100644
--- a/drivers/mpu/include/mpu.hpp
+++ b/drivers/mpu/include/mpu.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020-2021 Arm Limited. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -29,7 +29,7 @@
namespace EthosU {
namespace Mpu {
-enum { WTRA_index, WBWARA_index };
+enum { WTRA_index, WBWARA_index, WTWARA_index };
/**
* Dump the MPU tables.
diff --git a/drivers/mpu/src/mpu.cpp b/drivers/mpu/src/mpu.cpp
index 8e6a9e2..bd5c6cd 100644
--- a/drivers/mpu/src/mpu.cpp
+++ b/drivers/mpu/src/mpu.cpp
@@ -58,9 +58,12 @@ static void initializeAttributes() {
const uint8_t WTRA =
ARM_MPU_ATTR_MEMORY_(1, 0, 1, 0); // Non-transient, Write-Through, Read-allocate, Not Write-allocate
const uint8_t WBWARA = ARM_MPU_ATTR_MEMORY_(1, 1, 1, 1); // Non-transient, Write-Back, Read-allocate, Write-allocate
+ const uint8_t WTWARA =
+ ARM_MPU_ATTR_MEMORY_(1, 0, 1, 1); // Non-transient, Write-Through, Read-allocate, Write-allocate
ARM_MPU_SetMemAttr(WTRA_index, ARM_MPU_ATTR(WTRA, WTRA));
ARM_MPU_SetMemAttr(WBWARA_index, ARM_MPU_ATTR(WBWARA, WBWARA));
+ ARM_MPU_SetMemAttr(WTWARA_index, ARM_MPU_ATTR(WTWARA, WTWARA));
}
#endif