1/*
2 * Copyright (c) 2020 Synopsys, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/devicetree.h>
8
9/*
10 * SRAM base address and size
11 */
12#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_sram), reg) && \
13    (DT_REG_SIZE(DT_CHOSEN(zephyr_sram)) > 0)
14#define SRAM_START		DT_REG_ADDR(DT_CHOSEN(zephyr_sram))
15#define SRAM_SIZE		DT_REG_SIZE(DT_CHOSEN(zephyr_sram))
16#endif
17
18/*
19 * flash base address and size
20 */
21#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_flash), reg) && \
22    (DT_REG_SIZE(DT_CHOSEN(zephyr_flash)) > 0)
23#define FLASH_START		DT_REG_ADDR(DT_CHOSEN(zephyr_flash))
24#define FLASH_SIZE		DT_REG_SIZE(DT_CHOSEN(zephyr_flash))
25#endif
26
27#include <zephyr/arch/arc/v2/linker.ld>
28