summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorWard Vandewege <ward@gnu.org>2009-04-27 20:19:06 +0000
committerWard Vandewege <ward@gnu.org>2009-04-27 20:19:06 +0000
commit55faef348a8dd20ac777f75fe00e8772a7655d7a (patch)
tree76d17706ccacab68f72e9a877668c7937fa5087a /src/mainboard
parent2d0b93bb54ba3bf8c693fc7c80f1ec1e7bff65da (diff)
downloadcoreboot-55faef348a8dd20ac777f75fe00e8772a7655d7a.tar.xz
Add high tables support for Supermicro H8DME.
Signed-off-by: Ward Vandewege <ward@gnu.org> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4221 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/supermicro/h8dme/Options.lb9
-rw-r--r--src/mainboard/supermicro/h8dme/mainboard.c18
2 files changed, 23 insertions, 4 deletions
diff --git a/src/mainboard/supermicro/h8dme/Options.lb b/src/mainboard/supermicro/h8dme/Options.lb
index ba52d84eca..ed39913e4b 100644
--- a/src/mainboard/supermicro/h8dme/Options.lb
+++ b/src/mainboard/supermicro/h8dme/Options.lb
@@ -56,6 +56,10 @@ 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
uses LB_CKS_RANGE_START
uses LB_CKS_RANGE_END
uses LB_CKS_LOC
@@ -125,6 +129,11 @@ 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
+
##
## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
##
diff --git a/src/mainboard/supermicro/h8dme/mainboard.c b/src/mainboard/supermicro/h8dme/mainboard.c
index 98bbd3a513..719593dda1 100644
--- a/src/mainboard/supermicro/h8dme/mainboard.c
+++ b/src/mainboard/supermicro/h8dme/mainboard.c
@@ -16,13 +16,23 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <console/console.h>
#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-#include <device/pci_ops.h>
+#include <console/console.h>
+#include <boot/tables.h>
#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")
};