From 55979aa3a5c6557fa4923294fe775eed4c265efc Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Wed, 4 Apr 2018 18:06:50 -0500 Subject: [PATCH] arm: Add more flash and ram size options to i.MX RT MPU config Adds 8 MB and 64 MB flash size options, which correspond to the two external flashes (qspi flash and hyperflash) on the mimxrt1050_evk board. Adds a 32 MB SRAM size option, which corresponds to the external sdram on the board. Signed-off-by: Maureen Helm --- arch/arm/soc/nxp_imx/rt/arm_mpu_mem_cfg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/soc/nxp_imx/rt/arm_mpu_mem_cfg.h b/arch/arm/soc/nxp_imx/rt/arm_mpu_mem_cfg.h index f8ad3474366..e68eea6682c 100644 --- a/arch/arm/soc/nxp_imx/rt/arm_mpu_mem_cfg.h +++ b/arch/arm/soc/nxp_imx/rt/arm_mpu_mem_cfg.h @@ -22,6 +22,10 @@ #define REGION_FLASH_SIZE REGION_1M #elif CONFIG_FLASH_SIZE == 2048 #define REGION_FLASH_SIZE REGION_2M +#elif CONFIG_FLASH_SIZE == 8192 +#define REGION_FLASH_SIZE REGION_8M +#elif CONFIG_FLASH_SIZE == 65536 +#define REGION_FLASH_SIZE REGION_64M #else #error "Unsupported configuration" #endif @@ -35,6 +39,8 @@ #define REGION_SRAM_0_SIZE REGION_128K #elif CONFIG_SRAM_SIZE == 256 #define REGION_SRAM_0_SIZE REGION_256K +#elif CONFIG_SRAM_SIZE == 32768 +#define REGION_SRAM_0_SIZE REGION_32M #else #error "Unsupported configuration" #endif