board: emsk: fix the ddr related definitons

* add ddr fixup in dts_fixup.h
* use DT_DDR_XXX in linker.ld

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
Wayne Ren 2019-03-29 01:52:18 +08:00 committed by Anas Nashif
commit d6870e408a
2 changed files with 10 additions and 7 deletions

View file

@ -1,11 +1,14 @@
/* SoC level DTS fixup file */
/* CCM configuration */
#define DT_DCCM_BASE_ADDRESS DT_ARC_DCCM_80000000_BASE_ADDRESS
#define DT_DCCM_SIZE (DT_ARC_DCCM_80000000_SIZE >> 10)
#define DT_DCCM_BASE_ADDRESS DT_ARC_DCCM_80000000_BASE_ADDRESS
#define DT_DCCM_SIZE (DT_ARC_DCCM_80000000_SIZE >> 10)
#define DT_ICCM_BASE_ADDRESS DT_ARC_ICCM_0_BASE_ADDRESS
#define DT_ICCM_SIZE (DT_ARC_ICCM_0_SIZE >> 10)
#define DT_ICCM_BASE_ADDRESS DT_ARC_ICCM_0_BASE_ADDRESS
#define DT_ICCM_SIZE (DT_ARC_ICCM_0_SIZE >> 10)
#define DT_DDR_BASE_ADDRESS DT_MMIO_SRAM_10000000_BASE_ADDRESS
#define DT_DDR_SIZE (DT_MMIO_SRAM_10000000_SIZE >> 10)
/*
* UART configuration

View file

@ -17,9 +17,9 @@
* DRAM includes the exception vector table at reset, which is at
* the beginning of the region.
*/
#if defined(DT_MMIO_SRAM_0_BASE_ADDRESS) && (DT_MMIO_SRAM_0_SIZE > 0)
#define SRAM_START DT_MMIO_SRAM_0_BASE_ADDRESS
#define SRAM_SIZE (DT_MMIO_SRAM_0_SIZE >> 10)
#if defined(DT_DDR_BASE_ADDRESS) && (DT_DDR_SIZE > 0)
#define SRAM_START DT_DDR_BASE_ADDRESS
#define SRAM_SIZE DT_DDR_SIZE
#endif
/* Instruction Closely Coupled Memory (ICCM) base address and size */