tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / intel / fsp_baytrail / memmap.c
blob0c2c14d4b68e9e584f57fa3f8177262b9d377645
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2013 Google, Inc.
5 * Copyright (C) 2014 Sage Electronic Engineering, LLC.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
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.
17 #include <arch/io.h>
18 #include <cbmem.h>
19 #include <baytrail/iosf.h>
20 #include <baytrail/smm.h>
21 #include <drivers/intel/fsp1_0/fsp_util.h>
23 uintptr_t smm_region_start(void)
25 return (iosf_bunit_read(BUNIT_SMRRL) << 20);
28 /** @brief get the top of usable low memory from the FSP's HOB list
30 * The FSP's reserved memory sits just below the SMM region. The memory
31 * region below it is usable memory.
33 * The entire memory map is shown in northcluster.c
35 * @return pointer to the first byte of reserved memory
38 void *cbmem_top(void)
40 return find_fsp_reserved_mem(*(void **)CBMEM_FSP_HOB_PTR);