• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <memlayout.h>
4#include <soc/addressmap.h>
5
6#include <arch/header.ld>
7
8SECTIONS
9{
10	SRAM_START(FU740_L2LIM)
11	/* The 64K size is not allocated. It's just for basic size checking. */
12	BOOTBLOCK(FU740_L2LIM, 64K)
13	CAR_STACK(FU740_L2LIM + 64K, 12K) // considering each harts stack is a pagesize (4K), we can potentially have up to 16 harts regarding stack space //TODO reduce it, since fu740 doesn't even have/support 16 harts
14	PRERAM_CBMEM_CONSOLE(FU740_L2LIM + 76K, 8K)
15	CBFS_MCACHE(FU740_L2LIM + 84K, 8K)
16	FMAP_CACHE(FU740_L2LIM + 92K, 2K)
17	PRERAM_CBFS_CACHE(FU740_L2LIM + 94K, 128K)
18	SRAM_END(FU740_L2LIM + 2M)
19
20	DRAM_START(FU740_DRAM)
21	OPENSBI(FU740_DRAM, 256K)
22	/* The 256K size is not allocated. It's just for basic size checking. */
23	RAMSTAGE(FU740_DRAM + 256K, 256K)
24	MEM_STACK(FU740_DRAM + 512K, 20K)
25	POSTRAM_CBFS_CACHE(FU740_DRAM + 532K, 32M - 532K)
26}
27