mainboards: align on using ACPI_Sx definitions
[coreboot.git] / src / mainboard / intel / stargo2 / mainboard_smi.c
blob0e7e986c206c46ffa667efe876262c207625db94
1 /*
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>
18 #include <arch/io.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)
29 u8 reg8;
31 switch (slp_typ) {
32 case ACPI_S3:
33 case ACPI_S4:
34 case ACPI_S5:
35 break;
40 static int mainboard_finalized = 0;
42 int mainboard_smi_apmc(u8 apmc)
44 switch (apmc) {
45 case APM_CNT_FINALIZE:
46 if (mainboard_finalized) {
47 printk(BIOS_DEBUG, "SMI#: Already finalized\n");
48 return 0;
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;
57 break;
59 return 0;