Author: ward Date: 2009-04-27 22:19:06 +0200 (Mon, 27 Apr 2009) New Revision: 4221
Modified: trunk/coreboot-v2/src/mainboard/supermicro/h8dme/Options.lb trunk/coreboot-v2/src/mainboard/supermicro/h8dme/mainboard.c Log:
Add high tables support for Supermicro H8DME.
Signed-off-by: Ward Vandewege ward@gnu.org Acked-by: Myles Watson mylesgw@gmail.com
Modified: trunk/coreboot-v2/src/mainboard/supermicro/h8dme/Options.lb =================================================================== --- trunk/coreboot-v2/src/mainboard/supermicro/h8dme/Options.lb 2009-04-27 20:00:29 UTC (rev 4220) +++ trunk/coreboot-v2/src/mainboard/supermicro/h8dme/Options.lb 2009-04-27 20:19:06 UTC (rev 4221) @@ -56,6 +56,10 @@ 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 @@ #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 ##
Modified: trunk/coreboot-v2/src/mainboard/supermicro/h8dme/mainboard.c =================================================================== --- trunk/coreboot-v2/src/mainboard/supermicro/h8dme/mainboard.c 2009-04-27 20:00:29 UTC (rev 4220) +++ trunk/coreboot-v2/src/mainboard/supermicro/h8dme/mainboard.c 2009-04-27 20:19:06 UTC (rev 4221) @@ -16,13 +16,23 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#include <device/device.h> #include <console/console.h> -#include <device/device.h> -#include <device/pci.h> -#include <device/pci_ids.h> -#include <device/pci_ops.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") };