From bccaafc677c3b51c730baebf83073f8db166550d Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 28 Apr 2009 12:57:25 +0000 Subject: add_mainboard_resources is necessary for some boards (eg. kontron), but this generic code could be added to the caller of add_mainboard_resources (wrapped in HAVE_HIGH_TABLES, of course). That way, boards that really need it (for other things) can use this function, while others don't have to do anything to use HAVE_HIGH_TABLES. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4223 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/supermicro/h8dme/Options.lb | 2 -- src/mainboard/supermicro/h8dme/mainboard.c | 14 -------------- 2 files changed, 16 deletions(-) (limited to 'src/mainboard/supermicro') diff --git a/src/mainboard/supermicro/h8dme/Options.lb b/src/mainboard/supermicro/h8dme/Options.lb index ed39913e4b..46183f9396 100644 --- a/src/mainboard/supermicro/h8dme/Options.lb +++ b/src/mainboard/supermicro/h8dme/Options.lb @@ -56,7 +56,6 @@ uses XIP_ROM_BASE uses STACK_SIZE uses HEAP_SIZE uses USE_OPTION_TABLE -uses HAVE_MAINBOARD_RESOURCES uses HAVE_HIGH_TABLES uses HAVE_LOW_TABLES uses CONFIG_MULTIBOOT @@ -129,7 +128,6 @@ uses CONFIG_USE_PRINTK_IN_CAR #default ROM_SIZE=524288 default ROM_SIZE=0x100000 -default HAVE_MAINBOARD_RESOURCES = 1 default HAVE_HIGH_TABLES = 1 default HAVE_LOW_TABLES = 0 default CONFIG_MULTIBOOT=0 diff --git a/src/mainboard/supermicro/h8dme/mainboard.c b/src/mainboard/supermicro/h8dme/mainboard.c index 719593dda1..6b78f5b896 100644 --- a/src/mainboard/supermicro/h8dme/mainboard.c +++ b/src/mainboard/supermicro/h8dme/mainboard.c @@ -17,22 +17,8 @@ */ #include -#include -#include #include "chip.h" -/* in arch/i386/boot/tables.c */ -extern uint64_t high_tables_base, high_tables_size; - -int add_mainboard_resources(struct lb_memory *mem) -{ -#if HAVE_HIGH_TABLES == 1 - lb_add_memory_range(mem, LB_MEM_TABLE, - high_tables_base, high_tables_size); -#endif - return 0; -} - struct chip_operations mainboard_ops = { CHIP_NAME("Supermicro H8DME Mainboard") }; -- cgit v1.2.3