• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <memlayout.h>
4#include <arch/header.ld>
5
6/* SYSTEM_IMEM : 0x14680000 - 0x146AE000 */
7#define SSRAM_START(addr) REGION_START(ssram, addr)
8#define SSRAM_END(addr) REGION_END(ssram, addr)
9
10/* BOOT_IMEM   : 0x14800000 - 0x14980000 */
11#define BSRAM_START(addr) REGION_START(bsram, addr)
12#define BSRAM_END(addr) REGION_END(bsram, addr)
13
14/* AOP : 0x0B000000 - 0x0B100000 */
15#define AOPSRAM_START(addr) REGION_START(aopsram, addr)
16#define AOPSRAM_END(addr) REGION_END(aopsram, addr)
17
18SECTIONS
19{
20	AOPSRAM_START(0x0B000000)
21	REGION(aop_code_ram, 0x0B000000, 0x80000, 4096)
22	REGION(aop_data_ram, 0x0B0E0000, 0x20000, 4096)
23	AOPSRAM_END(0x0B100000)
24
25	SSRAM_START(0x14680000)
26	OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x14680000, 104K)
27	REGION(qcsdi, 0x1469E000, 55K, 4K)
28	REGION(modem_id, 0x146ABD00, 4, 4)
29	SSRAM_END(0x146AE000)
30
31	BSRAM_START(0x14800000)
32	REGION(pbl_timestamps, 0x14800000, 83K, 4K)
33	WATCHDOG_TOMBSTONE(0x14814FFC, 4)
34	BOOTBLOCK(0x14815000, 48K)
35	TPM_LOG(0x14821000, 2K)
36	PRERAM_CBFS_CACHE(0x14821800, 60K)
37	PRERAM_CBMEM_CONSOLE(0x14830800, 32K)
38	TIMESTAMP(0x14838800, 1K)
39	TTB(0x14839000, 56K)
40	STACK(0x14847000, 16K)
41	VBOOT2_WORK(0x1484B000, 12K)
42	DMA_COHERENT(0x1484E000, 8K)
43	REGION(ddr_training, 0x14850000, 8K, 4K)
44	REGION(qclib_serial_log, 0x14852000, 4K, 4K)
45	REGION(ddr_information, 0x14853000, 1K, 1K)
46	FMAP_CACHE(0x14853400, 2K)
47	CBFS_MCACHE(0x14853C00, 8K)
48	REGION(dcb, 0x1485b000, 16K, 4K)
49	REGION(pmic, 0x1485f000, 48K, 4K)
50	REGION(qclib, 0x1486b000, 596K, 4K)
51	BSRAM_END(0x14900000)
52
53	DRAM_START(0x80000000)
54	/* Various hardware/software subsystems make use of this area */
55	REGION(dram_aop,  0x80800000, 0x040000, 0x1000)
56	REGION(dram_soc,  0x80900000, 0x200000, 0x1000)
57	BL31(0x80B00000, 1M)
58	REGION(dram_modem_wifi_only, 0x86000000, 32M, 4)
59	REGION(dram_modem_extra, 0x88000000, 108M, 4)
60	POSTRAM_CBFS_CACHE(0x9F800000, 16M)
61	RAMSTAGE(0xA0800000, 16M)
62}
63