blob: ab2b579f0a3ae9011fc783fcb59dc604edf27269 [file] [log] [blame]
Stefan Reinauer52db0b92012-12-07 17:15:04 -08001/*
2 * This file is part of the coreboot project.
3 *
Stefan Reinauer52db0b92012-12-07 17:15:04 -08004 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
Stefan Reinauer52db0b92012-12-07 17:15:04 -080012 */
13
Aaron Durbind4afa932016-04-19 17:25:59 -050014#include <bootmem.h>
Stefan Reinauer52db0b92012-12-07 17:15:04 -080015#include <boot/tables.h>
16#include <boot/coreboot_tables.h>
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020017#include <symbols.h>
Stefan Reinauer52db0b92012-12-07 17:15:04 -080018
Aaron Durbin5481c962016-04-19 20:37:51 -050019void arch_write_tables(uintptr_t coreboot_table)
20{
21}
22
Aaron Durbind4afa932016-04-19 17:25:59 -050023void bootmem_arch_add_ranges(void)
24{
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020025 DECLARE_OPTIONAL_REGION(ttb_subtables);
26
Julius Werner7e0dea62019-02-20 18:39:22 -080027 bootmem_add_range((uintptr_t)_ttb, REGION_SIZE(ttb), BM_MEM_RAMSTAGE);
28 bootmem_add_range((uintptr_t)_ttb_subtables, REGION_SIZE(ttb_subtables),
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020029 BM_MEM_RAMSTAGE);
30
Julius Wernercd49cce2019-03-05 16:53:33 -080031 if (!CONFIG(COMMON_CBFS_SPI_WRAPPER))
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020032 return;
33 bootmem_add_range((uintptr_t)_postram_cbfs_cache,
Julius Werner7e0dea62019-02-20 18:39:22 -080034 REGION_SIZE(postram_cbfs_cache), BM_MEM_RAMSTAGE);
Aaron Durbind4afa932016-04-19 17:25:59 -050035}
36
Aaron Durbinf6ada1c2016-02-10 10:52:47 -060037void lb_arch_add_records(struct lb_header *header)
38{
39}