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> |
| 17 | |
| 18 | #include <arch/header.ld> |
| 19 | |
| 20 | /* |
| 21 | * Memory map for qemu vexpress-a9: |
| 22 | * |
| 23 | * 0x0000_0000: jump instruction (by qemu) |
| 24 | * 0x0001_0000: bootblock (entry of kernel / firmware) |
| 25 | * 0x0002_0000: romstage, assume up to 128KB in size. |
| 26 | * 0x0007_ff00: stack pointer |
| 27 | * 0x0010_0000: CBFS header |
| 28 | * 0x0011_0000: CBFS data |
| 29 | * 0x0100_0000: reserved for ramstage |
| 30 | * 0x1000_0000: I/O map address |
| 31 | */ |
| 32 | |
| 33 | SECTIONS |
| 34 | { |
| 35 | /* TODO: does this thing emulate SRAM? */ |
| 36 | |
| 37 | BOOTBLOCK(0x10000, 64K) |
| 38 | ROMSTAGE(0x20000, 128K) |
| 39 | STACK(0x000FC000, 16K) |
| 40 | |
| 41 | DRAM_START(0x01000000) |
| 42 | RAMSTAGE(0x01000000, 16M) |
| 43 | } |