1/*
2 * Copyright 2021,2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6/**
7 * @file
8 * @brief Linker command/script file
9 *
10 * This is the linker script for both standard images and XIP images.
11 */
12
13#include <zephyr/devicetree.h>
14
15 MEMORY
16     {
17#if (DT_REG_SIZE_BY_IDX(DT_NODELABEL(flexspi1), 1) > 0)
18        FLEXSPI1  (wx) : ORIGIN = DT_REG_ADDR_BY_IDX(DT_NODELABEL(flexspi1), 1), LENGTH = DT_REG_SIZE_BY_IDX(DT_NODELABEL(flexspi1), 1)
19#endif
20#if (DT_REG_SIZE_BY_IDX(DT_NODELABEL(flexspi2), 1) > 0)
21        FLEXSPI2  (wx) : ORIGIN = DT_REG_ADDR_BY_IDX(DT_NODELABEL(flexspi2), 1), LENGTH = DT_REG_SIZE_BY_IDX(DT_NODELABEL(flexspi2), 1)
22#endif
23     }
24#include <zephyr/arch/arm/cortex_m/scripts/linker.ld>
25