Commit b15ac058 authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Martí Bolívar
Browse files

soc: arm: add mpu REGION_FLASH_SIZE definitions for larger flash regions



Add MPU REGION_FLASH_SIZE definitions for 128M-512M flash sizes, to handle
arm SOCs with large flash regions.

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent e4b76efe
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,12 @@
#define REGION_FLASH_SIZE REGION_16M
#elif CONFIG_FLASH_SIZE <= 65536
#define REGION_FLASH_SIZE REGION_64M
#elif CONFIG_FLASH_SIZE <= 131072
#define REGION_FLASH_SIZE REGION_128M
#elif CONFIG_FLASH_SIZE <= 262144
#define REGION_FLASH_SIZE REGION_256M
#elif CONFIG_FLASH_SIZE <= 524288
#define REGION_FLASH_SIZE REGION_512M
#else
#error "Unsupported flash size configuration"
#endif