blob: 94b6fd8d918a87662c0edf12e2fb25f3ba3fcb7d [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)
19 PRERAM_CBFS_CACHE(0x40006000, 14K)
Joel Kitching0097f552019-02-21 12:36:55 +080020 VBOOT2_WORK(0x40009800, 12K)
Bill XIEc79e96b2019-08-22 20:28:36 +080021 TPM_TCPA_LOG(0x4000D800, 2K)
Julius Wernerec5e5e02014-08-20 15:29:56 -070022 STACK(0x4000E000, 8K)
Patrick Rudolph5ed02e12018-10-02 13:11:35 +020023 BOOTBLOCK(0x40010000, 30K)
24 VERSTAGE(0x40017800, 72K)
25 ROMSTAGE(0x40029800, 89K)
Julius Wernerf5452082016-02-17 16:12:46 -080026 TIMESTAMP(0x4003FC00, 1K)
Julius Wernerec5e5e02014-08-20 15:29:56 -070027 SRAM_END(0x40040000)
28
29 DRAM_START(0x80000000)
30 POSTRAM_CBFS_CACHE(0x80100000, 1M)
31 RAMSTAGE(0x80200000, 128K)
32 DMA_COHERENT(0x90000000, 2M)
33}