Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 2 | |
| 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 Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 14 | /* AOP : 0x0B000000 - 0x0B100000 */ |
| 15 | #define AOPSRAM_START(addr) SYMBOL(aopsram, addr) |
| 16 | #define AOPSRAM_END(addr) SYMBOL(eaopsram, addr) |
| 17 | |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 18 | SECTIONS |
| 19 | { |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 20 | AOPSRAM_START(0x0B000000) |
| 21 | REGION(aop, 0x0B000000, 0x100000, 4096) |
| 22 | AOPSRAM_END(0x0B100000) |
| 23 | |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 24 | SSRAM_START(0x14680000) |
| 25 | OVERLAP_VERSTAGE_ROMSTAGE(0x14680000, 100K) |
| 26 | REGION(qcsdi, 0x14699000, 52K, 4K) |
| 27 | SSRAM_END(0x146AE000) |
| 28 | |
| 29 | BSRAM_START(0x14800000) |
T Michael Turney | 593a4c3 | 2020-03-06 10:46:23 -0800 | [diff] [blame] | 30 | REGION(pbl_timestamps, 0x14800000, 84K, 4K) |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 31 | BOOTBLOCK(0x14815000, 40K) |
| 32 | PRERAM_CBFS_CACHE(0x1481F000, 70K) |
| 33 | PRERAM_CBMEM_CONSOLE(0x14830800, 32K) |
| 34 | TIMESTAMP(0x14838800, 1K) |
| 35 | TTB(0x14839000, 56K) |
| 36 | STACK(0x14847000, 16K) |
| 37 | VBOOT2_WORK(0x1484B000, 12K) |
| 38 | DMA_COHERENT(0x1484E000, 8K) |
| 39 | REGION(ddr_training, 0x14850000, 8K, 4K) |
| 40 | REGION(qclib_serial_log, 0x14852000, 4K, 4K) |
| 41 | REGION(ddr_information, 0x14853000, 1K, 1K) |
Julius Werner | cefe89e | 2019-11-06 19:29:44 -0800 | [diff] [blame] | 42 | FMAP_CACHE(0x14853400, 2K) |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 43 | REGION(dcb, 0x14870000, 16K, 4K) |
| 44 | REGION(pmic, 0x14874000, 44K, 4K) |
| 45 | REGION(limits_cfg, 0x1487F000, 4K, 4K) |
| 46 | REGION(qclib, 0x14880000, 512K, 4K) |
| 47 | BSRAM_END(0x14900000) |
| 48 | |
| 49 | DRAM_START(0x80000000) |
| 50 | /* Various hardware/software subsystems make use of this area */ |
Ravi Kumar Bokka | 6bbf8f2 | 2019-08-12 14:54:21 +0530 | [diff] [blame] | 51 | REGION(dram_aop, 0x80800000, 0x040000, 0x1000) |
T Michael Turney | 593a4c3 | 2020-03-06 10:46:23 -0800 | [diff] [blame] | 52 | REGION(dram_soc, 0x80900000, 0x200000, 0x1000) |
| 53 | BL31(0x80B00000, 1M) |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 54 | POSTRAM_CBFS_CACHE(0x9F800000, 16M) |
| 55 | RAMSTAGE(0xA0800000, 16M) |
| 56 | } |