Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <memlayout.h> |
| 4 | #include <arch/header.ld> |
| 5 | |
| 6 | /* SYSTEM_IMEM : 0x14680000 - 0x146AB000 */ |
| 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 | |
| 18 | SECTIONS |
| 19 | { |
Ravi Kumar Bokka | 5afeba3 | 2021-01-04 14:28:14 +0530 | [diff] [blame] | 20 | REGION(shrm, 0x09060000, 64K , 4K) |
| 21 | |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 22 | AOPSRAM_START(0x0B000000) |
Ravi Kumar Bokka | f8e4ba0 | 2021-10-21 20:14:09 +0530 | [diff] [blame] | 23 | REGION(aop_code_ram, 0x0B000000, 0x80000, 4096) |
| 24 | REGION(aop_data_ram, 0x0B0E0000, 0x20000, 4096) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 25 | AOPSRAM_END(0x0B100000) |
| 26 | |
| 27 | SSRAM_START(0x14680000) |
samrab | 01158d3 | 2021-03-26 16:33:52 +0530 | [diff] [blame] | 28 | OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x14680000, 100K) |
| 29 | REGION(qcsdi, 0x14699000, 48K, 4K) |
| 30 | REGION(modem_id, 0x146A5D00, 4, 4) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 31 | SSRAM_END(0x146AB000) |
| 32 | |
| 33 | BSRAM_START(0x14800000) |
| 34 | REGION(pbl_timestamps, 0x14800000, 84K, 4K) |
| 35 | BOOTBLOCK(0x14819000, 40K) |
| 36 | PRERAM_CBFS_CACHE(0x14823000, 70K) |
| 37 | PRERAM_CBMEM_CONSOLE(0x14834800, 32K) |
| 38 | TIMESTAMP(0x1483C800, 1K) |
| 39 | TTB(0x1483D000, 56K) |
| 40 | STACK(0x1484B000, 16K) |
| 41 | VBOOT2_WORK(0x1484F000, 12K) |
| 42 | DMA_COHERENT(0x14853000, 8K) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 43 | REGION(qclib_serial_log, 0x14857000, 4K, 4K) |
Ravi Kumar Bokka | 6668ae3 | 2021-07-10 22:40:18 +0530 | [diff] [blame] | 44 | CBFS_MCACHE(0x14858000,16K) |
| 45 | REGION(ddr_information, 0x1485C000, 1K, 1K) |
| 46 | FMAP_CACHE(0x1485C400, 2K) |
Ravi Kumar Bokka | 86c5bcd | 2021-04-23 18:39:47 +0530 | [diff] [blame] | 47 | REGION(dcb, 0x1485E000, 32K, 4K) |
| 48 | REGION(pmic, 0x14866000, 96K, 4K) |
Ravi Kumar Bokka | 65af8bb | 2021-07-16 16:52:34 +0530 | [diff] [blame] | 49 | REGION(ddr_training, 0x1487E000, 32K, 4K) |
| 50 | REGION(qclib, 0x14886000, 800K, 4K) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 51 | BSRAM_END(0x14950000) |
| 52 | |
| 53 | DRAM_START(0x80000000) |
| 54 | /* Various hardware/software subsystems make use of this area */ |
Ravi Kumar Bokka | f8e4ba0 | 2021-10-21 20:14:09 +0530 | [diff] [blame] | 55 | REGION(dram_aop, 0x80800000, 0x080000, 0x1000) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 56 | REGION(dram_soc, 0x80900000, 0x200000, 0x1000) |
Ravi Kumar Bokka | b0d48ed | 2021-01-21 02:54:48 +0530 | [diff] [blame] | 57 | REGION(dram_cpucp,0x80B00000, 0x100000, 0x1000) |
Ravi Kumar Bokka | 1a47c6a | 2021-02-09 11:33:46 +0530 | [diff] [blame] | 58 | REGION(dram_wlan, 0x80C00000, 0xC00000, 0x1000) |
T Michael Turney | 730107e | 2022-01-19 18:27:47 -0800 | [diff] [blame] | 59 | REGION(dram_modem, 0x8B800000, 0xF600000, 0x1000) |
Ravi Kumar Bokka | 1a47c6a | 2021-02-09 11:33:46 +0530 | [diff] [blame] | 60 | REGION(dram_wpss, 0x9AE00000, 0x1900000, 0x1000) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 61 | POSTRAM_CBFS_CACHE(0x9F800000, 16M) |
| 62 | RAMSTAGE(0xA0800000, 16M) |
Ravi Kumar Bokka | b0d48ed | 2021-01-21 02:54:48 +0530 | [diff] [blame] | 63 | BL31(0xC0000000, 1M) |
Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 64 | } |