1/* 2 * This file is part of the coreboot project. 3 * 4 * Copyright (C) 2007-2008 coresystems GmbH 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#include <mainboard.h> 20#include <console.h> 21#include <string.h> 22#include <mtrr.h> 23#include <macros.h> 24#include <spd_ddr2.h> 25#include <cpu.h> 26#include <msr.h> 27#include <device/pci.h> 28#include <pci_ops.h> 29#include <mc146818rtc.h> 30#include <lib.h> 31#include <spd.h> 32#include <io.h> 33#include <types.h> 34#include "raminit.h" 35#include "i945.h" 36#include "pcie_config.h" 37 38int is_coldboot(void) 39{ 40 int boot_mode = 0; 41 if (MCHBAR16(SSKPD) == 0xCAFE) { 42 printk(BIOS_DEBUG, "soft reset detected.\n"); 43 boot_mode = 1; 44 } 45 return boot_mode; 46} 47 48

