Generic approach of putting BIOS tables at the end of memory
[coreboot.git] / src / mainboard / kontron / 986lcd-m / mainboard.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2008 coresystems GmbH
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; version 2 of
9  * the License.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21
22
23 #include <device/device.h>
24 #include <console/console.h>
25 #include <boot/tables.h>
26 #include "chip.h"
27
28 /* in arch/i386/boot/tables.c */
29 extern uint64_t high_tables_base, high_tables_size;
30
31 /* in northbridge/intel/i945/northbridge.c */
32 extern uint64_t uma_memory_base, uma_memory_size;
33
34 int add_mainboard_resources(struct lb_memory *mem)
35 {
36 #if HAVE_HIGH_TABLES == 1
37         printk_debug("Adding high table area\n");
38         lb_add_memory_range(mem, LB_MEM_TABLE,
39                 high_tables_base, high_tables_size);
40 #endif
41         printk_debug("Adding UMA memory area\n");
42         lb_add_memory_range(mem, LB_MEM_RESERVED, 
43                 uma_memory_base, uma_memory_size);
44
45         return 0;
46 }
47
48 struct chip_operations mainboard_ops = {
49         CHIP_NAME("Kontron 986LCD-M Mainboard")
50 };
51