aboutsummaryrefslogtreecommitdiff
path: root/product/n1sdp/scp_ramfw/config_armv7m_mpu.c
diff options
context:
space:
mode:
authorDeepak Pandey <Deepak.Pandey@arm.com>2018-12-13 12:34:51 +0530
committerronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com>2018-12-21 12:40:11 +0000
commit07590f4ade595aec3cc1b4e51e5fe24349424efa (patch)
tree7575293093cc94332391cb94c4d141b863f71286 /product/n1sdp/scp_ramfw/config_armv7m_mpu.c
parente0b02e47b87fe262fdc4c9c63463a14e66043aba (diff)
n1sdp: restructure the function to handle the copy of AP Firmware
The mpu configuration is also updated to reflect the correct SRAM size. This enables the functions to copy the AP firmware to AP SRAM. Change-Id: I27b11a4eeb078b15fac4e09ab33b225a2c87659c Signed-off-by: Deepak Pandey <Deepak.Pandey@arm.com>
Diffstat (limited to 'product/n1sdp/scp_ramfw/config_armv7m_mpu.c')
-rw-r--r--product/n1sdp/scp_ramfw/config_armv7m_mpu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/product/n1sdp/scp_ramfw/config_armv7m_mpu.c b/product/n1sdp/scp_ramfw/config_armv7m_mpu.c
index 84a92d5f..4149b197 100644
--- a/product/n1sdp/scp_ramfw/config_armv7m_mpu.c
+++ b/product/n1sdp/scp_ramfw/config_armv7m_mpu.c
@@ -27,20 +27,20 @@ static const ARM_MPU_Region_t regions[] = {
.RASR = ARM_MPU_RASR(
1, ARM_MPU_AP_PRIV, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_256KB),
},
- { /* 0xA400_0000 - 0xA400_0FFF*/
+ { /* 0xA400_0000 - 0xA407_FFFF*/
.RBAR = ARM_MPU_RBAR(3, SCP_TRUSTED_RAM_BASE),
.RASR = ARM_MPU_RASR(
- 1, ARM_MPU_AP_PRIV, 0, 1, 1, 1, 0, ARM_MPU_REGION_SIZE_4KB),
+ 1, ARM_MPU_AP_PRIV, 0, 1, 1, 1, 0, ARM_MPU_REGION_SIZE_512KB),
},
{ /* 0x6540_0000 - 0x6540_00FF */
.RBAR = ARM_MPU_RBAR(4, SCP_AP_SHARED_SECURE_RAM),
.RASR = ARM_MPU_RASR(
1, ARM_MPU_AP_PRIV, 0, 1, 1, 1, 0, ARM_MPU_REGION_SIZE_256B),
},
- { /* 0x6520_0000 - 0x6520_00FF */
+ { /* 0x6520_0000 - 0x6520_FFFF */
.RBAR = ARM_MPU_RBAR(5, SCP_AP_SHARED_NONSECURE_RAM),
.RASR = ARM_MPU_RASR(
- 1, ARM_MPU_AP_PRIV, 0, 1, 1, 1, 0, ARM_MPU_REGION_SIZE_256B),
+ 1, ARM_MPU_AP_PRIV, 0, 1, 1, 1, 0, ARM_MPU_REGION_SIZE_64KB),
},
};