c68fe6174bcfc2fdfea4a708ea7b24a5eaae9034
[coreboot.git] / src / mainboard / asus / m2v-mx_se / mainboard.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007 Rudolf Marek <r.marek@assembler.cz>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License v2 as published by
8  * the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #include <device/device.h>
21 #include <device/pci.h>
22 #include <device/pci_ids.h>
23 #include <boot/tables.h>
24 #include "chip.h"
25
26 int add_mainboard_resources(struct lb_memory *mem)
27 {
28 #if CONFIG_HAVE_ACPI_RESUME == 1
29         lb_add_memory_range(mem, LB_MEM_RESERVED,
30                 CONFIG_RAMBASE, ((CONFIG_LB_MEM_TOPK<<10) - CONFIG_RAMBASE));
31         lb_add_memory_range(mem, LB_MEM_RESERVED,
32                 CONFIG_DCACHE_RAM_BASE, CONFIG_DCACHE_RAM_SIZE);
33 #endif
34         return 0;
35 }
36
37 struct chip_operations mainboard_ops = {
38         CHIP_NAME("ASUS M2V-MX SE Mainboard")
39 };