Angel Pons | bbc99cf | 2020-04-04 18:51:23 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
huang lin | c14b54d | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 2 | |
| 3 | #include <memlayout.h> |
| 4 | #include <arch/header.ld> |
| 5 | |
| 6 | SECTIONS |
| 7 | { |
| 8 | DRAM_START(0x00000000) |
Ting Shen | dff29e0 | 2019-01-28 18:15:00 +0800 | [diff] [blame] | 9 | BL31(0, 0x100000) |
Marty E. Plummer | 22e605c | 2019-04-20 01:38:51 -0500 | [diff] [blame] | 10 | POSTRAM_CBFS_CACHE(0x00100000, 8M) |
| 11 | RAMSTAGE(0x00900000, 2M) |
huang lin | c14b54d | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 12 | DMA_COHERENT(0x10000000, 2M) |
huang lin | c14b54d | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 13 | |
Julius Werner | b6bf1dd | 2016-08-24 19:38:05 -0700 | [diff] [blame] | 14 | /* 8K of special SRAM in PMU power domain. */ |
Julius Werner | 82d16b1 | 2020-12-30 15:51:10 -0800 | [diff] [blame] | 15 | REGION_START(pmu_sram, 0xFF3B0000) |
Julius Werner | b6bf1dd | 2016-08-24 19:38:05 -0700 | [diff] [blame] | 16 | WATCHDOG_TOMBSTONE(0xFF3B1FFC, 4) |
Julius Werner | 82d16b1 | 2020-12-30 15:51:10 -0800 | [diff] [blame] | 17 | REGION_END(pmu_sram, 0xFF3B2000) |
Julius Werner | b6bf1dd | 2016-08-24 19:38:05 -0700 | [diff] [blame] | 18 | |
huang lin | c14b54d | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 19 | SRAM_START(0xFF8C0000) |
Julius Werner | 314b5c3 | 2019-02-20 17:50:42 -0800 | [diff] [blame] | 20 | #if ENV_RAMSTAGE |
| 21 | REGION(bl31_sram, 0xFF8C0000, 64K, 1) |
| 22 | #else |
Julius Werner | cefe89e | 2019-11-06 19:29:44 -0800 | [diff] [blame] | 23 | PRERAM_CBFS_CACHE(0xFF8C0000, 5K) |
| 24 | FMAP_CACHE(0xFF8C1400, 2K) |
Julius Werner | eb131f3 | 2016-07-29 12:30:50 -0700 | [diff] [blame] | 25 | TIMESTAMP(0xFF8C1C00, 1K) |
Julius Werner | 8f25a66 | 2018-05-14 11:43:30 -0700 | [diff] [blame] | 26 | /* 0xFF8C2004 is the entry point address the masked ROM will jump to. */ |
Julius Werner | baf27db | 2019-10-02 17:28:56 -0700 | [diff] [blame] | 27 | OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0xFF8C2004, 84K - 4) |
| 28 | BOOTBLOCK(0xFF8D7000, 40K) |
Julius Werner | 314b5c3 | 2019-02-20 17:50:42 -0800 | [diff] [blame] | 29 | #endif |
Julius Werner | baf27db | 2019-10-02 17:28:56 -0700 | [diff] [blame] | 30 | CBFS_MCACHE(0xFF8E1000, 8K) |
| 31 | VBOOT2_WORK(0XFF8E3000, 12K) |
| 32 | TTB(0xFF8E6000, 20K) |
Julius Werner | 34dba35 | 2017-04-12 13:38:56 -0700 | [diff] [blame] | 33 | PRERAM_CBMEM_CONSOLE(0xFF8EB000, 8K) |
| 34 | STACK(0xFF8ED000, 12K) |
huang lin | c14b54d | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 35 | SRAM_END(0xFF8F0000) |
| 36 | } |