diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2023-07-13 10:53:34 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2023-07-24 14:40:59 +0200 |
commit | 780149bc385b2b7670012e6b46bbd172cbbebd65 (patch) | |
tree | 93847f3c4c41eaf758a1cdc7c503b297ec8f7bf2 /bsps/arm/imxrt/start/mpu-config.c | |
parent | bsps/imx*: Support more GPIO controllers (diff) | |
download | rtems-780149bc385b2b7670012e6b46bbd172cbbebd65.tar.bz2 |
bsps/imsrt: Make flash config more flexible
The flash configuration is something very board specific. So move the
file to a board specific location. Beneath that, not all controllers and
configurations need the flash config right at the address 0 of the
flash. For example on the i.MXRT11xx, the config has an offset for some
flash types.
Diffstat (limited to '')
-rw-r--r-- | bsps/arm/imxrt/start/mpu-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/arm/imxrt/start/mpu-config.c b/bsps/arm/imxrt/start/mpu-config.c index 8928980445..a8f98f1c81 100644 --- a/bsps/arm/imxrt/start/mpu-config.c +++ b/bsps/arm/imxrt/start/mpu-config.c @@ -44,8 +44,8 @@ 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_flash_config_begin, - .end = imxrt_memory_flash_end, + .begin = imxrt_memory_flash_raw_begin, + .end = imxrt_memory_flash_raw_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B | ARMV7M_MPU_RASR_ENABLE, |