1/*
2 * Copyright (c) 2019-2020 Cobham Gaisler AB
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/**
8 * @file
9 * @brief Linker command/script file
10 *
11 * Linker script for GR716A
12 */
13
14/*
15 * GR716A memory map
16 *
17 * LENGTH values represent the maximum possible. All memory regions may not be
18 * available on all systems. bootprom, RAM and SRAM are always available.
19 */
20MEMORY
21{
22  bootprom (rx)  : ORIGIN = 0x00000000, LENGTH = 4K
23  extprom  (rx)  : ORIGIN = 0x01000000, LENGTH = 16M
24  spi0     (rx)  : ORIGIN = 0x02000000, LENGTH = 32M
25  spi1     (rx)  : ORIGIN = 0x04000000, LENGTH = 32M
26  RAM      (rw)  : ORIGIN = 0x30000000, LENGTH = 64K
27  SRAM     (x)   : ORIGIN = 0x31000000, LENGTH = 128K
28  extram   (rwx) : ORIGIN = 0x40000000, LENGTH = 256M
29  /* refer to include/linker/inlist.ld */
30  IDT_LIST (wx)  : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
31}
32
33REGION_ALIAS("REGION_TEXT", SRAM);
34REGION_ALIAS("REGION_RODATA", RAM);
35REGION_ALIAS("REGION_DATA_VMA", RAM);
36REGION_ALIAS("REGION_DATA_LMA", RAM);
37REGION_ALIAS("REGION_BSS", RAM);
38
39#define ROMABLE_REGION RAM
40#define RAMABLE_REGION RAM
41
42#include <zephyr/arch/sparc/linker.ld>
43