Andrew Boie | 6524bae | 2016-06-02 10:48:59 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 Intel Corporation |
| 3 | * |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | * SPDX-License-Identifier: Apache-2.0 |
Andrew Boie | 6524bae | 2016-06-02 10:48:59 -0700 | [diff] [blame] | 5 | */ |
| 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-Paretas | d342e4c | 2022-05-09 13:20:58 +0200 | [diff] [blame] | 12 | #include <zephyr/devicetree.h> |
Kumar Gala | be97e40 | 2020-04-30 14:20:21 -0500 | [diff] [blame] | 13 | |
| 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-Paretas | d342e4c | 2022-05-09 13:20:58 +0200 | [diff] [blame] | 20 | #include <zephyr/arch/nios2/linker.ld> |