soc: arc: Use new dts macros in linker scripts and arc_mpu_regions
Convert linker scripts and arc_mpu_regions.c setup to use new devicetree.h macros to extract the base address and size of the various memory regions (DDR, SRAM, FLASH, DCCM, ICCM). We also remove the scaling up and down since DT_REG_SIZE() returns the value in bytes. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
8b27d5c6b9
commit
e7332f924b
14 changed files with 76 additions and 125 deletions
|
@ -62,16 +62,16 @@ ENTRY(CONFIG_KERNEL_ENTRY)
|
|||
|
||||
MEMORY {
|
||||
#ifdef FLASH_START
|
||||
FLASH (rx) : ORIGIN = FLASH_START, LENGTH = FLASH_SIZE*1k
|
||||
FLASH (rx) : ORIGIN = FLASH_START, LENGTH = FLASH_SIZE
|
||||
#endif
|
||||
#ifdef ICCM_START
|
||||
ICCM (rwx) : ORIGIN = ICCM_START, LENGTH = ICCM_SIZE*1k
|
||||
ICCM (rwx) : ORIGIN = ICCM_START, LENGTH = ICCM_SIZE
|
||||
#endif
|
||||
#ifdef SRAM_START
|
||||
SRAM (rwx) : ORIGIN = SRAM_START, LENGTH = SRAM_SIZE*1k
|
||||
SRAM (rwx) : ORIGIN = SRAM_START, LENGTH = SRAM_SIZE
|
||||
#endif
|
||||
#ifdef DCCM_START
|
||||
DCCM (rw) : ORIGIN = DCCM_START, LENGTH = DCCM_SIZE*1k
|
||||
DCCM (rw) : ORIGIN = DCCM_START, LENGTH = DCCM_SIZE
|
||||
#endif
|
||||
/* Used by and documented in include/linker/intlist.ld */
|
||||
IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue