blob: 112df7ccc91ed50d140ac1a84c4c0b27c81eb1a9 [file] [log] [blame]
Paul Burtonc1081a42014-06-14 00:08:02 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Imagination Technologies
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Paul Burtonc1081a42014-06-14 00:08:02 +010015 */
16
17#include <cbmem.h>
18#include <stdlib.h>
Julius Wernerec5e5e02014-08-20 15:29:56 -070019#include <symbols.h>
Paul Burtonc1081a42014-06-14 00:08:02 +010020
21void *cbmem_top(void)
22{
Vadim Bendebury40ff8a52014-11-29 15:31:40 -080023 return _dram + (CONFIG_DRAM_SIZE_MB << 20);
Paul Burtonc1081a42014-06-14 00:08:02 +010024}