blob: 65e50d106e256490279e67009bc88f48c9a694b8 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
T Michael Turney7783c602019-10-09 07:04:54 -07002
3#include <memlayout.h>
4#include <arch/header.ld>
5
6/* SYSTEM_IMEM : 0x14680000 - 0x146AE000 */
7#define SSRAM_START(addr) SYMBOL(ssram, addr)
8#define SSRAM_END(addr) SYMBOL(essram, addr)
9
10/* BOOT_IMEM : 0x14800000 - 0x14980000 */
11#define BSRAM_START(addr) SYMBOL(bsram, addr)
12#define BSRAM_END(addr) SYMBOL(ebsram, addr)
13
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053014/* AOP : 0x0B000000 - 0x0B100000 */
15#define AOPSRAM_START(addr) SYMBOL(aopsram, addr)
16#define AOPSRAM_END(addr) SYMBOL(eaopsram, addr)
17
T Michael Turney7783c602019-10-09 07:04:54 -070018SECTIONS
19{
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053020 AOPSRAM_START(0x0B000000)
21 REGION(aop, 0x0B000000, 0x100000, 4096)
22 AOPSRAM_END(0x0B100000)
23
T Michael Turney7783c602019-10-09 07:04:54 -070024 SSRAM_START(0x14680000)
Julius Werner87feced2020-09-29 19:23:36 -070025 OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x14680000, 100K)
T Michael Turney7783c602019-10-09 07:04:54 -070026 REGION(qcsdi, 0x14699000, 52K, 4K)
mkurumela9d225b2020-09-14 23:28:53 +053027 REGION(modem_id, 0x146ABD00, 4, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070028 SSRAM_END(0x146AE000)
29
30 BSRAM_START(0x14800000)
Ravi Kumar Bokka6fde4c52020-08-25 15:47:59 +053031 REGION(pbl_timestamps, 0x14800000, 83K, 4K)
32 WATCHDOG_TOMBSTONE(0x14814FFC, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070033 BOOTBLOCK(0x14815000, 40K)
34 PRERAM_CBFS_CACHE(0x1481F000, 70K)
35 PRERAM_CBMEM_CONSOLE(0x14830800, 32K)
36 TIMESTAMP(0x14838800, 1K)
37 TTB(0x14839000, 56K)
38 STACK(0x14847000, 16K)
39 VBOOT2_WORK(0x1484B000, 12K)
40 DMA_COHERENT(0x1484E000, 8K)
41 REGION(ddr_training, 0x14850000, 8K, 4K)
42 REGION(qclib_serial_log, 0x14852000, 4K, 4K)
43 REGION(ddr_information, 0x14853000, 1K, 1K)
Julius Wernercefe89e2019-11-06 19:29:44 -080044 FMAP_CACHE(0x14853400, 2K)
Ashwin Kumar6856ae42019-10-21 11:17:24 +053045 REGION(dcb, 0x1485b000, 16K, 4K)
mkurumel69ba8f12020-09-24 22:24:23 +053046 REGION(pmic, 0x1485f000, 48K, 4K)
Ashwin Kumar6856ae42019-10-21 11:17:24 +053047 REGION(qclib, 0x1486b000, 596K, 4K)
T Michael Turney7783c602019-10-09 07:04:54 -070048 BSRAM_END(0x14900000)
49
50 DRAM_START(0x80000000)
51 /* Various hardware/software subsystems make use of this area */
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053052 REGION(dram_aop, 0x80800000, 0x040000, 0x1000)
T Michael Turney593a4c32020-03-06 10:46:23 -080053 REGION(dram_soc, 0x80900000, 0x200000, 0x1000)
54 BL31(0x80B00000, 1M)
mkurumela9d225b2020-09-14 23:28:53 +053055 REGION(dram_modem_wifi_only, 0x86000000, 32M, 4)
56 REGION(dram_modem_extra, 0x88000000, 108M, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070057 POSTRAM_CBFS_CACHE(0x9F800000, 16M)
58 RAMSTAGE(0xA0800000, 16M)
59}