Angel Pons | 5de47d0 | 2020-04-04 18:51:30 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 2 | |
| 3 | #include <memlayout.h> |
| 4 | #include <soc/addressmap.h> |
| 5 | |
| 6 | #include <arch/header.ld> |
| 7 | |
Julius Werner | 82d16b1 | 2020-12-30 15:51:10 -0800 | [diff] [blame] | 8 | #define L2LIM_START(addr) REGION_START(l2lim, addr) |
| 9 | #define L2LIM_END(addr) REGION_END(l2lim, addr) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 10 | |
| 11 | SECTIONS |
| 12 | { |
| 13 | L2LIM_START(FU540_L2LIM) |
| 14 | BOOTBLOCK(FU540_L2LIM, 64K) |
Julius Werner | baf27db | 2019-10-02 17:28:56 -0700 | [diff] [blame] | 15 | CAR_STACK(FU540_L2LIM + 64K, 12K) |
| 16 | PRERAM_CBMEM_CONSOLE(FU540_L2LIM + 76K, 8K) |
| 17 | CBFS_MCACHE(FU540_L2LIM + 84K, 8K) |
Julius Werner | 8245bd2 | 2019-12-04 20:32:15 -0800 | [diff] [blame] | 18 | FMAP_CACHE(FU540_L2LIM + 92K, 2K) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 19 | ROMSTAGE(FU540_L2LIM + 128K, 128K) |
Xiang Wang | d577726 | 2019-08-27 16:04:54 +0800 | [diff] [blame] | 20 | PRERAM_CBFS_CACHE(FU540_L2LIM + 256K, 128K) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 21 | L2LIM_END(FU540_L2LIM + 2M) |
| 22 | |
| 23 | DRAM_START(FU540_DRAM) |
Patrick Rudolph | d434e8b | 2019-07-07 13:15:30 +0200 | [diff] [blame] | 24 | REGION(opensbi, FU540_DRAM, 128K, 4K) |
| 25 | RAMSTAGE(FU540_DRAM + 128K, 256K) |
| 26 | MEM_STACK(FU540_DRAM + 448K, 20K) |
Xiang Wang | d577726 | 2019-08-27 16:04:54 +0800 | [diff] [blame] | 27 | POSTRAM_CBFS_CACHE(FU540_DRAM + 512K, 32M - 512K) |
Jonathan Neuschäfer | 55b4645 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 28 | } |