blob: 9c1bb197ce349f755139a48084370ca65a558bf7 [file] [log] [blame]
Elyes HAOUASf50b6622020-07-19 14:00:43 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Asami Doif7952422019-06-11 16:01:31 +09002
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 */
15SECTIONS
16{
17 REGION(flash, 0x00000000, CONFIG_ROM_SIZE, 8)
18
Julius Werner82d16b12020-12-30 15:51:10 -080019 BL31(0xe000000, 0x1000000)
Asami Doif7952422019-06-11 16:01:31 +090020 DRAM_START(0x40000000)
21 BOOTBLOCK(0x60010000, 64K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070022 STACK(0x60020000, 54K)
23 CBFS_MCACHE(0x6002D800, 8K)
Julius Werner8245bd22019-12-04 20:32:15 -080024 FMAP_CACHE(0x6002F800, 2K)
Arthur Heymans50526d52020-11-02 21:32:41 +010025 TIMESTAMP(0x60030000, 1K)
26 ROMSTAGE(0x60031000, 128K)
Patrick Rudolph977b8e82020-01-23 13:32:08 +010027 TTB(0x60070000, 128K)
28 RAMSTAGE(0x600b0000, 16M)
Asami Doif7952422019-06-11 16:01:31 +090029
Patrick Rudolph977b8e82020-01-23 13:32:08 +010030 POSTRAM_CBFS_CACHE(0x61200000, 1M)
Asami Doif7952422019-06-11 16:01:31 +090031}