blob: cf02528916de9e16f8c7d7d7d75a4d2c8f851ac3 [file] [log] [blame]
Dave Frodinc43bce52014-12-03 08:22:46 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2012 Advanced Micro Devices, Inc.
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 <cpu/x86/msr.h>
25#include <cpu/amd/mtrr.h>
26#include <device/pci_def.h>
27#include <arch/acpi.h>
28#include <northbridge/amd/agesa/BiosCallOuts.h>
29#include <cpu/amd/agesa/s3_resume.h>
30#include <northbridge/amd/agesa/agesawrapper.h>
31
32/**********************************************
33 * enable the dedicated function in mainboard.
34 **********************************************/
35static void mainboard_enable(device_t dev)
36{
37 printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
38
39 if (acpi_is_wakeup_s3())
40 agesawrapper_fchs3earlyrestore();
41}
42
43struct chip_operations mainboard_ops = {
44 .enable_dev = mainboard_enable,
45};