m5a99x-evo: remove gfx stuff
[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 u8 is_dev3_present(void);
32 void set_pcie_dereset(void);
33 void set_pcie_reset(void);
34
35 void set_pcie_dereset()
36 {
37 }
38
39 void set_pcie_reset(void)
40 {
41 }
42
43 u8 is_dev3_present(void)
44 {
45         return 0;
46 }
47
48
49 /*************************************************
50 * enable the dedicated function in M5A99X-EVO board.
51 * This function called early than rs780_enable.
52 *************************************************/
53 static void m5a99x_evo_enable(device_t dev)
54 {
55
56         printk(BIOS_INFO, "Mainboard ASUS M5A99X-EVO Enable. dev=0x%p\n", dev);
57
58         set_pcie_dereset();
59 }
60
61 int add_mainboard_resources(struct lb_memory *mem)
62 {
63         /* UMA is removed from system memory in the northbridge code, but
64          * in some circumstances we want the memory mentioned as reserved.
65          */
66         return 0;
67 }
68
69 struct chip_operations mainboard_ops = {
70         CHIP_NAME("ASUS M5A99X-EVO Mainboard")
71         .enable_dev = m5a99x_evo_enable,
72 };