1/*
2 * Copyright 2022 The Chromium OS Authors
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/linker/sections.h>
8#include <zephyr/devicetree.h>
9
10#include <zephyr/linker/linker-defs.h>
11#include <zephyr/linker/linker-tool.h>
12
13#define SRAM2_ADDR  (CONFIG_SRAM_BASE_ADDRESS + RAM_SIZE2)
14#define RAM_SIZE2 (0x4000000)
15
16MEMORY
17{
18    SRAM2      (wx) : ORIGIN = (CONFIG_SRAM_BASE_ADDRESS + RAM_SIZE2), LENGTH = RAM_SIZE2
19}
20
21PHDRS
22{
23    sram2_phdr PT_LOAD;
24}
25
26#define MPU_ALIGN(region_size) \
27    . = ALIGN(4)
28
29#include <xtensa-dc233c.ld>
30