Elyes HAOUAS | f50b662 | 2020-07-19 14:00:43 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 2 | |
| 3 | #include <memlayout.h> |
| 4 | #include <arch/header.ld> |
| 5 | |
| 6 | /* |
| 7 | * Memory map for QEMU virt machine since |
| 8 | * a578cdfbdd8f9beff5ced52b7826ddb1669abbbf (June 2019): |
| 9 | * |
| 10 | * 0..128MiB (0x0000_0000..0x0080_0000) is the space for a flash device. |
| 11 | * 128MiB..256MiB (0x0080_0000..0x0100_0000) is used for miscellaneous device I/O. |
| 12 | * 256MiB..1GiB (0x0100_0000..0x4000_0000) is reserved for possible future PCI support. |
| 13 | * 1GiB.. (0x4000_0000) is RAM and the size depends on initial RAM and device memory settings. |
| 14 | */ |
| 15 | SECTIONS |
| 16 | { |
| 17 | REGION(flash, 0x00000000, CONFIG_ROM_SIZE, 8) |
| 18 | |
Julius Werner | 82d16b1 | 2020-12-30 15:51:10 -0800 | [diff] [blame] | 19 | BL31(0xe000000, 0x1000000) |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 20 | DRAM_START(0x40000000) |
| 21 | BOOTBLOCK(0x60010000, 64K) |
Julius Werner | baf27db | 2019-10-02 17:28:56 -0700 | [diff] [blame] | 22 | STACK(0x60020000, 54K) |
| 23 | CBFS_MCACHE(0x6002D800, 8K) |
Julius Werner | 8245bd2 | 2019-12-04 20:32:15 -0800 | [diff] [blame] | 24 | FMAP_CACHE(0x6002F800, 2K) |
Arthur Heymans | 50526d5 | 2020-11-02 21:32:41 +0100 | [diff] [blame] | 25 | TIMESTAMP(0x60030000, 1K) |
| 26 | ROMSTAGE(0x60031000, 128K) |
Patrick Rudolph | 977b8e8 | 2020-01-23 13:32:08 +0100 | [diff] [blame] | 27 | TTB(0x60070000, 128K) |
| 28 | RAMSTAGE(0x600b0000, 16M) |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 29 | |
Patrick Rudolph | 977b8e8 | 2020-01-23 13:32:08 +0100 | [diff] [blame] | 30 | POSTRAM_CBFS_CACHE(0x61200000, 1M) |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 31 | } |