/* * This file is part of the coreboot project. * * Copyright (C) 2011 QingPei Wang * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include #include #include #include "SbPlatform.h" #include "chip.h" u8 is_dev3_present(void); void set_pcie_dereset(void); void set_pcie_reset(void); void set_pcie_dereset() { } void set_pcie_reset(void) { } u8 is_dev3_present(void) { return 0; } /************************************************* * enable the dedicated function in M5A99X-EVO board. * This function called early than rs780_enable. *************************************************/ static void m5a99x_evo_enable(device_t dev) { printk(BIOS_INFO, "Mainboard ASUS M5A99X-EVO Enable. dev=0x%p\n", dev); msr_t msr, msr2; /* TOP_MEM: the top of DRAM below 4G */ msr = rdmsr(TOP_MEM); printk (BIOS_INFO, "%s, TOP MEM: msr.lo = 0x%08x, msr.hi = 0x%08x\n", __func__, msr.lo, msr.hi); /* TOP_MEM2: the top of DRAM above 4G */ msr2 = rdmsr(TOP_MEM2); printk (BIOS_INFO, "%s, TOP MEM2: msr2.lo = 0x%08x, msr2.hi = 0x%08x\n", __func__, msr2.lo, msr2.hi); set_pcie_dereset(); } int add_mainboard_resources(struct lb_memory *mem) { /* UMA is removed from system memory in the northbridge code, but * in some circumstances we want the memory mentioned as reserved. */ return 0; } struct chip_operations mainboard_ops = { CHIP_NAME("ASUS M5A99X-EVO Mainboard") .enable_dev = m5a99x_evo_enable, };