aboutsummaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3399/include/soc/memlayout.ld
blob: 54cfbe113590b99fffb4c8b91e8da99a56c68fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * This file is part of the coreboot project.
 *
 * Copyright 2016 Rockchip Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <memlayout.h>
#include <arch/header.ld>

SECTIONS
{
	DRAM_START(0x00000000)
	POSTRAM_CBFS_CACHE(0x00100000, 1M)
	RAMSTAGE(0x00300000, 256K)
	DMA_COHERENT(0x10000000, 2M)
	FRAMEBUFFER(0x10200000, 8M)

	/* 8K of special SRAM in PMU power domain. */
	SYMBOL(pmu_sram, 0xFF3B0000)
	WATCHDOG_TOMBSTONE(0xFF3B1FFC, 4)
	SYMBOL(epmu_sram, 0xFF3B2000)

	SRAM_START(0xFF8C0000)
	PRERAM_CBMEM_CONSOLE(0xFF8C0000, 7K)
	TIMESTAMP(0xFF8C1C00, 1K)
	BOOTBLOCK(0xFF8C2004, 36K - 4)
	PRERAM_CBFS_CACHE(0xFF8CB000, 4K)
	TTB(0xFF8CC000, 24K)
	OVERLAP_VERSTAGE_ROMSTAGE(0xFF8D2000, 92K)
	VBOOT2_WORK(0XFF8E9000, 12K)
	STACK(0xFF8EC000, 16K)
	SRAM_END(0xFF8F0000)
}