summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c
index 844e233e9f..28f3814071 100644
--- a/src/ec/lenovo/pmh7/pmh7.c
+++ b/src/ec/lenovo/pmh7/pmh7.c
@@ -19,8 +19,12 @@
#include <arch/io.h>
#include <console/console.h>
+#ifndef __PRE_RAM__
+#ifndef __SMM__
#include <device/device.h>
#include <device/pnp.h>
+#endif
+#endif
#include <stdlib.h>
#include "pmh7.h"
#include "chip.h"