diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-05-28 16:54:00 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-07-02 13:49:47 +0200 |
commit | 0d3453a47e522fbb13b211e44ce4007b666686f3 (patch) | |
tree | a954f2d9286bbbb33f639e8305df99d9e9a60603 /bsps/arm/imxrt/start/mpu-config.c | |
parent | bsps/imxrt: Allow different ARM PLL setting (diff) | |
download | rtems-0d3453a47e522fbb13b211e44ce4007b666686f3.tar.bz2 |
bsps/imxrt: Simplify linkcmds and make it flexible
Calling the memory FLASH and EXTRAM instead of FLEXSPI and SDRAM makes
it simpler to support other types of external RAM. This patch also
removes some of the calculations and improves names and documentation to
avoid pitfalls. It removes a unnecessary memory definition.
Update #4180
Diffstat (limited to 'bsps/arm/imxrt/start/mpu-config.c')
-rw-r--r-- | bsps/arm/imxrt/start/mpu-config.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bsps/arm/imxrt/start/mpu-config.c b/bsps/arm/imxrt/start/mpu-config.c index 683b26d45b..79800ac431 100644 --- a/bsps/arm/imxrt/start/mpu-config.c +++ b/bsps/arm/imxrt/start/mpu-config.c @@ -32,8 +32,8 @@ BSP_START_DATA_SECTION const ARMV7M_MPU_Region_config imxrt_config_mpu_region [] = { { - .begin = imxrt_memory_sdram_begin, - .end = imxrt_memory_sdram_end, + .begin = imxrt_memory_extram_begin, + .end = imxrt_memory_extram_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B | ARMV7M_MPU_RASR_ENABLE, @@ -44,14 +44,14 @@ BSP_START_DATA_SECTION const ARMV7M_MPU_Region_config | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B | ARMV7M_MPU_RASR_ENABLE, }, { - .begin = imxrt_memory_flexspi_config_begin, - .end = imxrt_memory_flexspi_end, + .begin = imxrt_memory_flash_config_begin, + .end = imxrt_memory_flash_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B | ARMV7M_MPU_RASR_ENABLE, }, { - .begin = imxrt_memory_sdram_nocache_begin, - .end = imxrt_memory_sdram_nocache_end, + .begin = imxrt_memory_extram_nocache_begin, + .end = imxrt_memory_extram_nocache_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) | ARMV7M_MPU_RASR_TEX(0x2) | ARMV7M_MPU_RASR_ENABLE, |