blob: 7c89413166eee8904932715f8efa163d7254ddca [file] [log] [blame]
Angel Pons1ddb8942020-04-04 18:51:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Julius Wernerec5e5e02014-08-20 15:29:56 -07002
3#include <memlayout.h>
4
5#include <arch/header.ld>
6
7/*
8 * Note: The BootROM loads the 8K BL1 at [0x2020000:0x2022000), so the bootblock
9 * must be placed after that. After the handoff, the space can be reclaimed.
10 */
11
12SECTIONS
13{
14 SRAM_START(0x2020000)
15 /* 17K hole, includes BL1 */
Elyes HAOUAS3d450002018-08-09 18:55:58 +020016 /* Bootblock is preceded by 16 byte variable length BL2 checksum. */
Julius Wernerec5e5e02014-08-20 15:29:56 -070017 BOOTBLOCK(0x2024410, 32K - 16)
18 /* 15K hole */
19 ROMSTAGE(0x2030000, 128K)
20 /* 32K hole */
21 TTB(0x2058000, 16K)
Julius Wernerbaf27db2019-10-02 17:28:56 -070022 PRERAM_CBFS_CACHE(0x205C000, 66K)
23 CBFS_MCACHE(0x206C800, 8K)
Julius Wernercefe89e2019-11-06 19:29:44 -080024 FMAP_CACHE(0x206E800, 2K)
Julius Wernerec5e5e02014-08-20 15:29:56 -070025 STACK(0x206F000, 16K)
26 /* 1K hole for weird kernel-shared CPU/SMP state structure that doesn't
27 * seem to be implemented right now? */
28 SRAM_END(0x2074000)
29
30 DRAM_START(0x20000000)
31 RAMSTAGE(0x20000000, 128K)
32 POSTRAM_CBFS_CACHE(0x21000000, 8M)
33 DMA_COHERENT(0x77300000, 1M)
34}