mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-21 11:25:21 +00:00
Convert ocram and sdram regions to use new macro DT_REG_ADDR() and DT_REG_SIZE() with DT_NODELABEL to determine the various memories size and base address. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
27 lines
1007 B
Plaintext
27 lines
1007 B
Plaintext
/*
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <autoconf.h>
|
|
#include <devicetree.h>
|
|
|
|
MEMORY
|
|
{
|
|
#if (DT_REG_SIZE(DT_NODELABEL(ocram)) > 0) && !defined(CONFIG_DATA_OCRAM)
|
|
OCRAM (wx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(ocram)), LENGTH = DT_REG_SIZE(DT_NODELABEL(ocram))
|
|
#endif
|
|
#if (DT_REG_SIZE(DT_NODELABEL(sdram0)) > 0) && !defined(CONFIG_DATA_SEMC)
|
|
SDRAM (wx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(sdram0)), LENGTH = DT_REG_ADDR(DT_NODELABEL(sdram0))
|
|
#endif
|
|
#if (DT_REG_SIZE(DT_INST(0, nxp_imx_dtcm)) > 0) && !defined(CONFIG_DATA_DTCM)
|
|
DTCM (wx) : ORIGIN = DT_REG_ADDR(DT_INST(0, nxp_imx_dtcm)), LENGTH = DT_REG_SIZE(DT_INST(0, nxp_imx_dtcm))
|
|
#endif
|
|
#if (DT_REG_SIZE(DT_INST(0, nxp_imx_itcm)) > 0) && !defined(CONFIG_CODE_ITCM)
|
|
ITCM (wx) : ORIGIN = DT_REG_ADDR(DT_INST(0, nxp_imx_itcm)), LENGTH = DT_REG_SIZE(DT_INST(0, nxp_imx_itcm))
|
|
#endif
|
|
}
|
|
|
|
#include <arch/arm/aarch32/cortex_m/scripts/linker.ld>
|