blob: 2370601984ad88a30f3709772bad40cececb63d3 [file] [log] [blame]
Andrew Boie6524bae2016-06-02 10:48:59 -07001/*
2 * Copyright (c) 2016 Intel Corporation
3 *
David B. Kinderac74d8b2017-01-18 17:01:01 -08004 * SPDX-License-Identifier: Apache-2.0
Andrew Boie6524bae2016-06-02 10:48:59 -07005 */
6
7/**
8 * @brief Linker script for the Nios II/e CPU with timer and 16550 UART
9 */
10
11#include <layout.h>
Gerard Marull-Paretasd342e4c2022-05-09 13:20:58 +020012#include <zephyr/devicetree.h>
Kumar Galabe97e402020-04-30 14:20:21 -050013
14#define _RAM_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_sram))
15#define _RAM_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_sram))
16
17#define _ROM_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_flash))
18#define _ROM_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_flash))
19
Gerard Marull-Paretasd342e4c2022-05-09 13:20:58 +020020#include <zephyr/arch/nios2/linker.ld>