blob: 088390e850678d1641d959b64fa60c286a6870ae [file] [log] [blame]
WANG Siyuanf77f7342013-08-13 17:09:51 +08001/*
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.
WANG Siyuanf77f7342013-08-13 17:09:51 +080014 */
15
16#include <console/console.h>
17#include <device/device.h>
18#include <device/pci.h>
19#include <arch/io.h>
20#include <cpu/x86/msr.h>
21#include <cpu/amd/mtrr.h>
22#include <device/pci_def.h>
23#include <arch/acpi.h>
Kyösti Mälkki26f297e2014-05-26 11:27:54 +030024#include <northbridge/amd/agesa/BiosCallOuts.h>
Kyösti Mälkkif21c2ac2014-10-19 09:35:18 +030025#include <northbridge/amd/agesa/agesawrapper.h>
WANG Siyuanf77f7342013-08-13 17:09:51 +080026
27/**********************************************
28 * enable the dedicated function in mainboard.
29 **********************************************/
30static void mainboard_enable(device_t dev)
31{
32 printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
Kyösti Mälkki6a089e32014-06-27 13:32:59 +030033
34 if (acpi_is_wakeup_s3())
WANG Siyuanf77f7342013-08-13 17:09:51 +080035 agesawrapper_fchs3earlyrestore();
WANG Siyuanf77f7342013-08-13 17:09:51 +080036}
37
38struct chip_operations mainboard_ops = {
39 .enable_dev = mainboard_enable,
40};