pci stuff: too much hax now, trying rd890 patch (not merged yet)
[coreboot.git] / src / mainboard / asus / m5a99x-evo / mainboard.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2011 QingPei Wang <wangqingpei@gmail.com>
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 as published by
8  * the Free Software Foundation; version 2 of the License.
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 <console/console.h>
21 #include <device/device.h>
22 #include <device/pci.h>
23 #include <arch/io.h>
24 #include <boot/tables.h>
25 #include <cpu/x86/msr.h>
26 #include <cpu/amd/mtrr.h>
27 #include <device/pci_def.h>
28 #include "SbPlatform.h"
29 #include "chip.h"
30
31 uint64_t uma_memory_base, uma_memory_size;
32
33 u8 is_dev3_present(void);
34 void set_pcie_dereset(void);
35 void set_pcie_reset(void);
36 void enable_int_gfx(void);
37
38
39 void set_pcie_dereset()
40 {
41 }
42
43 void set_pcie_reset(void)
44 {
45 }
46
47 u8 is_dev3_present(void)
48 {
49         return 0;
50 }
51
52
53 /*************************************************
54 * enable the dedicated function in M5A99X-EVO board.
55 * This function called early than rs780_enable.
56 *************************************************/
57 static void m5a99x_evo_enable(device_t dev)
58 {
59
60         printk(BIOS_INFO, "Mainboard ASUS M5A99X-EVO Enable. dev=0x%p\n", dev);
61
62         uma_memory_size = 0x8000000;    /* 128M recommended UMA */
63         uma_memory_base = 0x38000000;   /* 1GB  system memory supposed */
64 }
65
66 int add_mainboard_resources(struct lb_memory *mem)
67 {
68         return 0;
69 }
70
71 struct chip_operations mainboard_ops = {
72         CHIP_NAME("ASUS M5A99X-EVO Mainboard")
73         .enable_dev = m5a99x_evo_enable,
74 };