summaryrefslogtreecommitdiff
path: root/src/mainboard/google/stout
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-05 18:50:38 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-09 11:03:03 +0000
commit21d6a27ac07d5233a7dd473d84c4c0b541059146 (patch)
treed926aa165ad61e40a4ebdc770a8cbc96fd23d24a /src/mainboard/google/stout
parentbe5317f6d0084b1997ff7342fbf5a5af3eecd950 (diff)
downloadcoreboot-21d6a27ac07d5233a7dd473d84c4c0b541059146.tar.xz
arch/x86: Replace some __SMM__ guards
We generally do not guard source in attempts to reduce the final object sizes, but rely on garbage collection. Most of the __unused attributes inserted here will be removed when remaining __SIMPLE_DEVICE__ guards can be removed. Change-Id: I2440931fab4f41d7e8249c082e6c9b5a9cd0ef13 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36641 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/stout')
-rw-r--r--src/mainboard/google/stout/ec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mainboard/google/stout/ec.c b/src/mainboard/google/stout/ec.c
index 59987a156d..0ea32bcfc3 100644
--- a/src/mainboard/google/stout/ec.c
+++ b/src/mainboard/google/stout/ec.c
@@ -17,6 +17,7 @@
#include <bootmode.h>
#include <types.h>
#include <console/console.h>
+#include <cpu/x86/smm.h>
#include <ec/quanta/it8518/ec.h>
#include <device/device.h>
#include <device/pci.h>
@@ -25,11 +26,6 @@
#include <elog.h>
#include "ec.h"
-#ifdef __SMM__
-#include <cpu/x86/smm.h>
-#endif
-
-#ifndef __SMM__
void stout_ec_init(void)
{
@@ -59,8 +55,6 @@ void stout_ec_init(void)
// TODO: Power Limit Setting
}
-#else // SMM
-
void stout_ec_finalize_smm(void)
{
u8 ec_reg, critical_shutdown = 0;
@@ -105,4 +99,3 @@ void stout_ec_finalize_smm(void)
write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10));
}
}
-#endif //__SMM__