blob: 62334a725fba8718324aa2d3f0177ba5126b3088 [file] [log] [blame]
Furquan Shaikh2af76f42014-04-28 16:39:40 -07001/*
2 * This file is part of the coreboot project.
3 *
Furquan Shaikh2af76f42014-04-28 16:39:40 -07004 * 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.
Furquan Shaikh2af76f42014-04-28 16:39:40 -070012 */
13
Aaron Durbind4afa932016-04-19 17:25:59 -050014#include <bootmem.h>
Furquan Shaikh2af76f42014-04-28 16:39:40 -070015#include <boot/tables.h>
16#include <boot/coreboot_tables.h>
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020017#include <symbols.h>
Furquan Shaikh2af76f42014-04-28 16:39:40 -070018
Ting Shendff29e02019-01-28 18:15:00 +080019DECLARE_OPTIONAL_REGION(bl31);
20
Aaron Durbin5481c962016-04-19 20:37:51 -050021void arch_write_tables(uintptr_t coreboot_table)
22{
23}
24
Aaron Durbind4afa932016-04-19 17:25:59 -050025void bootmem_arch_add_ranges(void)
26{
Julius Werner7e0dea62019-02-20 18:39:22 -080027 bootmem_add_range((uintptr_t)_ttb, REGION_SIZE(ttb), BM_MEM_RAMSTAGE);
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020028
Julius Wernercd49cce2019-03-05 16:53:33 -080029 if (CONFIG(ARM64_USE_ARM_TRUSTED_FIRMWARE) &&
Julius Werner7e0dea62019-02-20 18:39:22 -080030 REGION_SIZE(bl31) > 0)
31 bootmem_add_range((uintptr_t)_bl31, REGION_SIZE(bl31),
32 BM_MEM_BL31);
Ting Shendff29e02019-01-28 18:15:00 +080033
Julius Wernercd49cce2019-03-05 16:53:33 -080034 if (!CONFIG(COMMON_CBFS_SPI_WRAPPER))
Patrick Rudolph23d62dd2018-04-12 10:36:57 +020035 return;
36 bootmem_add_range((uintptr_t)_postram_cbfs_cache,
Julius Werner7e0dea62019-02-20 18:39:22 -080037 REGION_SIZE(postram_cbfs_cache), BM_MEM_RAMSTAGE);
Aaron Durbind4afa932016-04-19 17:25:59 -050038}
39
Aaron Durbinf6ada1c2016-02-10 10:52:47 -060040void lb_arch_add_records(struct lb_header *header)
41{
42}