9227f0ab0eace9061ae8a7d81bd4045917e0174e
[coreboot.git] / src / mainboard / via / epia-n / mainboard.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2008 VIA Technologies, Inc.
5  * (Written by Aaron Lwe <aaron.lwe@gmail.com> for VIA)
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
20  */
21
22 #include <device/device.h>
23 #include <device/pci.h>
24 #include <device/pci_ids.h>
25 #include <boot/tables.h>
26 #include <arch/ioapic.h>
27 #include <southbridge/via/vt8237r/vt8237r.h>
28 #include "chip.h"
29
30 int add_mainboard_resources(struct lb_memory *mem)
31 {
32 #if CONFIG_IOAPIC == 1
33         lb_add_memory_range(mem, LB_MEM_RESERVED,
34                 IO_APIC_ADDR, 0x1000);
35         lb_add_memory_range(mem, LB_MEM_RESERVED,
36                 0xFEE00000ULL, 0x1000);
37         lb_add_memory_range(mem, LB_MEM_RESERVED,
38                 0xFFFF0000ULL, 0x10000);
39 #endif
40         return 0;
41 }
42
43 struct chip_operations mainboard_ops = {
44         CHIP_NAME("VIA EPIA-N Mainboard")
45 };