Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 24 | SECTIONS |
| 25 | { |
| 26 | L2LIM_START(FU540_L2LIM) |
| 27 | BOOTBLOCK(FU540_L2LIM, 64K) |
Xiang Wang | a5b265b | 2018-08-29 14:59:32 +0800 | [diff] [blame] | 28 | CAR_STACK(FU540_L2LIM + 64K, 20K) |
| 29 | PRERAM_CBMEM_CONSOLE(FU540_L2LIM + 84K, 8K) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 30 | ROMSTAGE(FU540_L2LIM + 128K, 128K) |
| 31 | L2LIM_END(FU540_L2LIM + 2M) |
| 32 | |
| 33 | DRAM_START(FU540_DRAM) |
Patrick Rudolph | d434e8b | 2019-07-07 13:15:30 +0200 | [diff] [blame^] | 34 | REGION(opensbi, FU540_DRAM, 128K, 4K) |
| 35 | RAMSTAGE(FU540_DRAM + 128K, 256K) |
| 36 | MEM_STACK(FU540_DRAM + 448K, 20K) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 37 | } |