blob: 42f21646447176ae45ee0e765eb2c24e42812b59 [file] [log] [blame]
Angel Ponsa2ee7612020-04-04 18:51:15 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Georgi40a3e322015-06-22 19:41:29 +02002
3#include <memlayout.h>
Julius Werner7dcf9d52015-10-16 13:10:02 -07004#include <rules.h>
Patrick Georgi40a3e322015-06-22 19:41:29 +02005
6#include <arch/header.ld>
7
8/*
9 * Note: The BootROM uses the address range [0x4000_0000:0x4000_E000) itself,
10 * so the bootblock loading address must be placed after that. After the
11 * handoff that area may be reclaimed for other uses, e.g. CBFS cache.
12 * TODO: Did this change on Tegra210? What's the new valid range?
13 */
14
15SECTIONS
16{
17 SRAM_START(0x40000000)
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010018 PRERAM_CBMEM_CONSOLE(0x40000000, 2K)
Julius Wernercefe89e2019-11-06 19:29:44 -080019 FMAP_CACHE(0x40000800, 2K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070020 PRERAM_CBFS_CACHE(0x40001000, 20K)
21 CBFS_MCACHE(0x40006000, 8K)
Christian Walter6d2dbe12019-07-31 16:23:53 +020022 VBOOT2_WORK(0x40008000, 12K)
Bill XIEc79e96b2019-08-22 20:28:36 +080023 TPM_TCPA_LOG(0x4000B000, 2K)
Julius Werner7dcf9d52015-10-16 13:10:02 -070024#if ENV_ARM64
Christian Walter6d2dbe12019-07-31 16:23:53 +020025 STACK(0x4000B800, 3K)
Julius Werner7dcf9d52015-10-16 13:10:02 -070026#else /* AVP gets a separate stack to avoid any chance of handoff races. */
Christian Walter6d2dbe12019-07-31 16:23:53 +020027 STACK(0x4000C400, 3K)
Julius Werner7dcf9d52015-10-16 13:10:02 -070028#endif
Christian Walter6d2dbe12019-07-31 16:23:53 +020029 TIMESTAMP(0x4000D000, 2K)
Julius Wernera2d123e2019-11-12 15:43:12 -080030 BOOTBLOCK(0x4000D800, 42K)
31 OVERLAP_VERSTAGE_ROMSTAGE(0x40018000, 160K)
Patrick Georgi40a3e322015-06-22 19:41:29 +020032 SRAM_END(0x40040000)
33
34 DRAM_START(0x80000000)
35 POSTRAM_CBFS_CACHE(0x80100000, 1M)
36 RAMSTAGE(0x80200000, 256K)
Julius Wernerfe4cbf12015-10-07 18:38:24 -070037 TTB(0x100000000 - CONFIG_TTB_SIZE_MB * 1M, CONFIG_TTB_SIZE_MB * 1M)
Patrick Georgi40a3e322015-06-22 19:41:29 +020038}