forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -56,6 +56,10 @@ extern char imxrt_memory_peripheral_begin[];
|
||||
extern char imxrt_memory_peripheral_end[];
|
||||
extern char imxrt_memory_peripheral_size[];
|
||||
|
||||
extern char imxrt_memory_flash_raw_begin[];
|
||||
extern char imxrt_memory_flash_raw_end[];
|
||||
extern char imxrt_memory_flash_raw_size[];
|
||||
|
||||
extern char imxrt_memory_flash_config_begin[];
|
||||
extern char imxrt_memory_flash_config_end[];
|
||||
extern char imxrt_memory_flash_config_size[];
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <bspopts.h>
|
||||
|
||||
const BOOT_DATA_T imxrt_boot_data = {
|
||||
.start = (uint32_t) imxrt_memory_flash_config_begin,
|
||||
.start = (uint32_t) imxrt_memory_flash_raw_begin,
|
||||
.size = IMXRT_MEMORY_FLASH_SIZE,
|
||||
.plugin = PLUGIN_FLAG,
|
||||
.placeholder = 0xFFFFFFFF,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user