blob: f661d2a25c518735f0d9095fd4324eb00c778789 [file] [log] [blame]
Angel Ponsa2ee7612020-04-04 18:51:15 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Julius Wernerec5e5e02014-08-20 15:29:56 -07002
3#include <memlayout.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -07004
5#include <arch/header.ld>
6
7/*
8 * Note: The BootROM uses the address range [0x4000_0000:0x4000_E000) itself,
9 * so the bootblock loading address must be placed after that. After the
10 * handoff that area may be reclaimed for other uses, e.g. CBFS cache.
11 */
12
13SECTIONS
14{
15 SRAM_START(0x40000000)
16 TTB(0x40000000, 16K + 32)
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010017 PRERAM_CBMEM_CONSOLE(0x40004020, 6K - 32)
Julius Wernercefe89e2019-11-06 19:29:44 -080018 FMAP_CACHE(0x40005800, 2K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070019 CBFS_MCACHE(0x40006000, 8K)
20 PRERAM_CBFS_CACHE(0x40008000, 6K)
Joel Kitching0097f552019-02-21 12:36:55 +080021 VBOOT2_WORK(0x40009800, 12K)
Bill XIEc79e96b2019-08-22 20:28:36 +080022 TPM_TCPA_LOG(0x4000D800, 2K)
Julius Wernerec5e5e02014-08-20 15:29:56 -070023 STACK(0x4000E000, 8K)
Patrick Rudolph5ed02e12018-10-02 13:11:35 +020024 BOOTBLOCK(0x40010000, 30K)
25 VERSTAGE(0x40017800, 72K)
26 ROMSTAGE(0x40029800, 89K)
Julius Wernerf5452082016-02-17 16:12:46 -080027 TIMESTAMP(0x4003FC00, 1K)
Julius Wernerec5e5e02014-08-20 15:29:56 -070028 SRAM_END(0x40040000)
29
30 DRAM_START(0x80000000)
31 POSTRAM_CBFS_CACHE(0x80100000, 1M)
32 RAMSTAGE(0x80200000, 128K)
33 DMA_COHERENT(0x90000000, 2M)
34}