2020-04-04 18:51:30 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2018-04-19 16:23:54 +02:00
|
|
|
|
|
|
|
#include <memlayout.h>
|
|
|
|
#include <soc/addressmap.h>
|
|
|
|
|
|
|
|
#include <arch/header.ld>
|
|
|
|
|
2020-12-31 00:51:10 +01:00
|
|
|
#define L2LIM_START(addr) REGION_START(l2lim, addr)
|
|
|
|
#define L2LIM_END(addr) REGION_END(l2lim, addr)
|
2018-04-19 16:23:54 +02:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
L2LIM_START(FU540_L2LIM)
|
|
|
|
BOOTBLOCK(FU540_L2LIM, 64K)
|
2019-10-03 02:28:56 +02:00
|
|
|
CAR_STACK(FU540_L2LIM + 64K, 12K)
|
|
|
|
PRERAM_CBMEM_CONSOLE(FU540_L2LIM + 76K, 8K)
|
|
|
|
CBFS_MCACHE(FU540_L2LIM + 84K, 8K)
|
2019-12-05 05:32:15 +01:00
|
|
|
FMAP_CACHE(FU540_L2LIM + 92K, 2K)
|
2018-04-19 16:23:54 +02:00
|
|
|
ROMSTAGE(FU540_L2LIM + 128K, 128K)
|
2019-08-27 10:04:54 +02:00
|
|
|
PRERAM_CBFS_CACHE(FU540_L2LIM + 256K, 128K)
|
2018-04-19 16:23:54 +02:00
|
|
|
L2LIM_END(FU540_L2LIM + 2M)
|
|
|
|
|
|
|
|
DRAM_START(FU540_DRAM)
|
2019-07-07 13:15:30 +02:00
|
|
|
REGION(opensbi, FU540_DRAM, 128K, 4K)
|
|
|
|
RAMSTAGE(FU540_DRAM + 128K, 256K)
|
|
|
|
MEM_STACK(FU540_DRAM + 448K, 20K)
|
2019-08-27 10:04:54 +02:00
|
|
|
POSTRAM_CBFS_CACHE(FU540_DRAM + 512K, 32M - 512K)
|
2018-04-19 16:23:54 +02:00
|
|
|
}
|