blob: ca9c99392081f30d90134d5f58114440556bf065 [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)
T Michael Turney7bfef7d2020-11-05 13:49:59 -080021 REGION(aop_code_ram, 0x0B000000, 0x80000, 4096)
22 REGION(aop_data_ram, 0x0B0E0000, 0x20000, 4096)
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053023 AOPSRAM_END(0x0B100000)
24
T Michael Turney7783c602019-10-09 07:04:54 -070025 SSRAM_START(0x14680000)
Julius Werner87feced2020-09-29 19:23:36 -070026 OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x14680000, 100K)
T Michael Turney7783c602019-10-09 07:04:54 -070027 REGION(qcsdi, 0x14699000, 52K, 4K)
mkurumela9d225b2020-09-14 23:28:53 +053028 REGION(modem_id, 0x146ABD00, 4, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070029 SSRAM_END(0x146AE000)
30
31 BSRAM_START(0x14800000)
Ravi Kumar Bokka6fde4c52020-08-25 15:47:59 +053032 REGION(pbl_timestamps, 0x14800000, 83K, 4K)
33 WATCHDOG_TOMBSTONE(0x14814FFC, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070034 BOOTBLOCK(0x14815000, 40K)
35 PRERAM_CBFS_CACHE(0x1481F000, 70K)
36 PRERAM_CBMEM_CONSOLE(0x14830800, 32K)
37 TIMESTAMP(0x14838800, 1K)
38 TTB(0x14839000, 56K)
39 STACK(0x14847000, 16K)
40 VBOOT2_WORK(0x1484B000, 12K)
41 DMA_COHERENT(0x1484E000, 8K)
42 REGION(ddr_training, 0x14850000, 8K, 4K)
43 REGION(qclib_serial_log, 0x14852000, 4K, 4K)
44 REGION(ddr_information, 0x14853000, 1K, 1K)
Julius Wernercefe89e2019-11-06 19:29:44 -080045 FMAP_CACHE(0x14853400, 2K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070046 CBFS_MCACHE(0x14853C00, 8K)
Ashwin Kumar6856ae42019-10-21 11:17:24 +053047 REGION(dcb, 0x1485b000, 16K, 4K)
mkurumel69ba8f12020-09-24 22:24:23 +053048 REGION(pmic, 0x1485f000, 48K, 4K)
Ashwin Kumar6856ae42019-10-21 11:17:24 +053049 REGION(qclib, 0x1486b000, 596K, 4K)
T Michael Turney7783c602019-10-09 07:04:54 -070050 BSRAM_END(0x14900000)
51
52 DRAM_START(0x80000000)
53 /* Various hardware/software subsystems make use of this area */
Ravi Kumar Bokka6bbf8f22019-08-12 14:54:21 +053054 REGION(dram_aop, 0x80800000, 0x040000, 0x1000)
T Michael Turney593a4c32020-03-06 10:46:23 -080055 REGION(dram_soc, 0x80900000, 0x200000, 0x1000)
56 BL31(0x80B00000, 1M)
mkurumela9d225b2020-09-14 23:28:53 +053057 REGION(dram_modem_wifi_only, 0x86000000, 32M, 4)
58 REGION(dram_modem_extra, 0x88000000, 108M, 4)
T Michael Turney7783c602019-10-09 07:04:54 -070059 POSTRAM_CBFS_CACHE(0x9F800000, 16M)
60 RAMSTAGE(0xA0800000, 16M)
61}