summaryrefslogtreecommitdiff
path: root/src/arch/armv7/tables.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2013-12-21 11:02:14 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2013-12-21 18:30:43 +0100
commitd9a98581ce5f94b2c8278aafcbb845f630ad7d71 (patch)
tree9261803938d27187381fed2d4324a3c49603c356 /src/arch/armv7/tables.c
parent88750cb3b60fa1d351a69b35ff10c739f4f4e8ce (diff)
armv7: Prepare tables code for dynamic CBMEM
The CBMEM API is different for dynamic CBMEM, so hide the functions that get in the way (but our compiler complains about) Change-Id: I7634a202059548e56c74fe3fe6eff57bc60f1a1b Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/4546 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch/armv7/tables.c')
-rw-r--r--src/arch/armv7/tables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/armv7/tables.c b/src/arch/armv7/tables.c
index b566ff6130..cf4e4e03eb 100644
--- a/src/arch/armv7/tables.c
+++ b/src/arch/armv7/tables.c
@@ -29,12 +29,14 @@
#define MAX_COREBOOT_TABLE_SIZE (8 * 1024)
+#if !CONFIG_DYNAMIC_CBMEM
void __attribute__((weak)) get_cbmem_table(uint64_t *base, uint64_t *size)
{
printk(BIOS_WARNING, "WARNING: you need to define get_cbmem_table for your board\n");
*base = 0;
*size = 0;
}
+#endif
void cbmem_arch_init(void)
{
@@ -44,7 +46,9 @@ struct lb_memory *write_tables(void)
{
unsigned long table_pointer, new_table_pointer;
+#if !CONFIG_DYNAMIC_CBMEM
cbmem_base_check();
+#endif
post_code(0x9d);