blob: 1d11aa0452ebbb18420e12f0561fbc18b42a1fde [file] [log] [blame]
Jonathan Neuschäfer55b46452018-04-19 16:23:54 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2018 Jonathan Neuschäfer
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <memlayout.h>
17#include <soc/addressmap.h>
18
19#include <arch/header.ld>
20
21#define L2LIM_START(addr) SYMBOL(l2lim, addr)
22#define L2LIM_END(addr) SYMBOL(el2lim, addr)
23
24SECTIONS
25{
26 L2LIM_START(FU540_L2LIM)
27 BOOTBLOCK(FU540_L2LIM, 64K)
Xiang Wanga5b265b2018-08-29 14:59:32 +080028 CAR_STACK(FU540_L2LIM + 64K, 20K)
29 PRERAM_CBMEM_CONSOLE(FU540_L2LIM + 84K, 8K)
Jonathan Neuschäfer55b46452018-04-19 16:23:54 +020030 ROMSTAGE(FU540_L2LIM + 128K, 128K)
31 L2LIM_END(FU540_L2LIM + 2M)
32
33 DRAM_START(FU540_DRAM)
Patrick Rudolphd434e8b2019-07-07 13:15:30 +020034 REGION(opensbi, FU540_DRAM, 128K, 4K)
35 RAMSTAGE(FU540_DRAM + 128K, 256K)
36 MEM_STACK(FU540_DRAM + 448K, 20K)
Jonathan Neuschäfer55b46452018-04-19 16:23:54 +020037}