blob: 348fb43cf5a02d9f512fbb1e3da016d391142ff6 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Nitheesh Sekar20e75872018-09-14 11:24:10 +05302
3#include <memlayout.h>
4#include <arch/header.ld>
5
6/* SYSTEM_IMEM : 0x8600000 - 0x8607FFF */
Julius Werner82d16b12020-12-30 15:51:10 -08007#define SSRAM_START(addr) REGION_START(ssram, addr)
8#define SSRAM_END(addr) REGION_END(ssram, addr)
Nitheesh Sekar20e75872018-09-14 11:24:10 +05309
10/* BOOT_IMEM : 0x8C00000 - 0x8D80000 */
Julius Werner82d16b12020-12-30 15:51:10 -080011#define BSRAM_START(addr) REGION_START(bsram, addr)
12#define BSRAM_END(addr) REGION_END(bsram, addr)
Nitheesh Sekar20e75872018-09-14 11:24:10 +053013
14SECTIONS
15{
16 SSRAM_START(0x8600000)
17 SSRAM_END(0x8608000)
18
19 BSRAM_START(0x8C00000)
20 OVERLAP_VERSTAGE_ROMSTAGE(0x8C00000, 100K)
21 REGION(fw_reserved2, 0x8C19000, 0x16000, 4096)
22 BOOTBLOCK(0x8C2F000, 40K)
23 TTB(0x8C39000, 56K)
Joel Kitching0097f552019-02-21 12:36:55 +080024 VBOOT2_WORK(0x8C47000, 12K)
Nitheesh Sekar20e75872018-09-14 11:24:10 +053025 STACK(0x8C4B000, 16K)
26 TIMESTAMP(0x8C4F000, 1K)
27 PRERAM_CBMEM_CONSOLE(0x8C4F400, 32K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070028 PRERAM_CBFS_CACHE(0x8C57400, 62K)
29 CBFS_MCACHE(0x8C66C00, 8K)
Julius Wernercefe89e2019-11-06 19:29:44 -080030 FMAP_CACHE(0x8C68C00, 2K)
31 REGION(bsram_unused, 0x8C69400, 0xA1C00, 0x100)
Nitheesh Sekar20e75872018-09-14 11:24:10 +053032 BSRAM_END(0x8D80000)
33
Nitheesh Sekar717050d2018-09-16 16:16:42 +053034 DRAM_START(0x80000000)
35 /* DDR Carveout for BL31 usage */
36 REGION(dram_reserved, 0x85000000, 0x5100000, 4096)
37 POSTRAM_CBFS_CACHE(0x9F800000, 384K)
38 RAMSTAGE(0x9F860000, 128K)
Nitheesh Sekar20e75872018-09-14 11:24:10 +053039}