2 * This file is part of the coreboot project.
4 * Copyright (C) 2008 VIA Technologies, Inc.
5 * (Written by Aaron Lwe <aaron.lwe@gmail.com> for VIA)
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.
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.
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
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>
30 int add_mainboard_resources(struct lb_memory *mem)
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);
43 struct chip_operations mainboard_ops = {
44 CHIP_NAME("VIA EPIA-N Mainboard")