2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 QingPei Wang <wangqingpei@gmail.com>
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.
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.
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
20 #include <console/console.h>
21 #include <device/device.h>
22 #include <device/pci.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"
31 uint64_t uma_memory_base, uma_memory_size;
33 u8 is_dev3_present(void);
34 void set_pcie_dereset(void);
35 void set_pcie_reset(void);
36 void enable_int_gfx(void);
39 void set_pcie_dereset()
43 void set_pcie_reset(void)
47 u8 is_dev3_present(void)
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)
60 printk(BIOS_INFO, "Mainboard ASUS M5A99X-EVO Enable. dev=0x%p\n", dev);
62 uma_memory_size = 0x8000000; /* 128M recommended UMA */
63 uma_memory_base = 0x38000000; /* 1GB system memory supposed */
66 int add_mainboard_resources(struct lb_memory *mem)
71 struct chip_operations mainboard_ops = {
72 CHIP_NAME("ASUS M5A99X-EVO Mainboard")
73 .enable_dev = m5a99x_evo_enable,