2 * This file is part of the coreboot project.
4 * Copyright (C) 2008-2009 coresystems GmbH
5 * Copyright (C) 2013 Sage Electronic Engineering, LLC.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <arch/acpi.h>
19 #include <console/console.h>
20 #include <cpu/x86/smm.h>
21 #include <southbridge/intel/fsp_i89xx/nvs.h>
22 #include <southbridge/intel/fsp_i89xx/pch.h>
23 #include <southbridge/intel/fsp_i89xx/me.h>
24 #include <northbridge/intel/fsp_sandybridge/sandybridge.h>
25 #include <cpu/intel/fsp_model_206ax/model_206ax.h>
27 void mainboard_smi_sleep(u8 slp_typ
)
40 static int mainboard_finalized
= 0;
42 int mainboard_smi_apmc(u8 apmc
)
45 case APM_CNT_FINALIZE
:
46 if (mainboard_finalized
) {
47 printk(BIOS_DEBUG
, "SMI#: Already finalized\n");
51 intel_me_finalize_smm();
52 intel_pch_finalize_smm();
53 intel_sandybridge_finalize_smm();
54 intel_model_206ax_finalize_smm();
56 mainboard_finalized
= 1;