Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2014 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <memlayout.h> |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 17 | |
| 18 | #include <arch/header.ld> |
| 19 | |
| 20 | /* |
| 21 | * Note: The BootROM uses the address range [0x4000_0000:0x4000_E000) itself, |
| 22 | * so the bootblock loading address must be placed after that. After the |
| 23 | * handoff that area may be reclaimed for other uses, e.g. CBFS cache. |
| 24 | */ |
| 25 | |
| 26 | SECTIONS |
| 27 | { |
| 28 | SRAM_START(0x40000000) |
| 29 | TTB(0x40000000, 16K + 32) |
Philipp Deppenwiese | c9b7d1f | 2018-11-10 00:35:02 +0100 | [diff] [blame] | 30 | PRERAM_CBMEM_CONSOLE(0x40004020, 6K - 32) |
| 31 | PRERAM_CBFS_CACHE(0x40005800, 16K) |
Joel Kitching | 0097f55 | 2019-02-21 12:36:55 +0800 | [diff] [blame^] | 32 | VBOOT2_WORK(0x40009800, 12K) |
Philipp Deppenwiese | c9b7d1f | 2018-11-10 00:35:02 +0100 | [diff] [blame] | 33 | VBOOT2_TPM_LOG(0x4000D800, 2K) |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 34 | STACK(0x4000E000, 8K) |
Patrick Rudolph | 5ed02e1 | 2018-10-02 13:11:35 +0200 | [diff] [blame] | 35 | BOOTBLOCK(0x40010000, 30K) |
| 36 | VERSTAGE(0x40017800, 72K) |
| 37 | ROMSTAGE(0x40029800, 89K) |
Julius Werner | f545208 | 2016-02-17 16:12:46 -0800 | [diff] [blame] | 38 | TIMESTAMP(0x4003FC00, 1K) |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 39 | SRAM_END(0x40040000) |
| 40 | |
| 41 | DRAM_START(0x80000000) |
| 42 | POSTRAM_CBFS_CACHE(0x80100000, 1M) |
| 43 | RAMSTAGE(0x80200000, 128K) |
| 44 | DMA_COHERENT(0x90000000, 2M) |
| 45 | } |