diff options
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/lenovo/pmh7/Makefile.inc | 2 | ||||
-rw-r--r-- | src/ec/lenovo/pmh7/pmh7.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/lenovo/pmh7/Makefile.inc b/src/ec/lenovo/pmh7/Makefile.inc index 4c891b25ab..e441980def 100644 --- a/src/ec/lenovo/pmh7/Makefile.inc +++ b/src/ec/lenovo/pmh7/Makefile.inc @@ -1 +1,3 @@ driver-y += pmh7.c +smm-$(CONFIG_HAVE_SMI_HANDLER) += pmh7.c +romstage-y += pmh7.c diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c index 30460c9021..844e233e9f 100644 --- a/src/ec/lenovo/pmh7/pmh7.c +++ b/src/ec/lenovo/pmh7/pmh7.c @@ -91,6 +91,8 @@ void pmh7_register_write(int reg, int val) outb(val, EC_LENOVO_PMH7_DATA); } +#ifndef __PRE_RAM__ +#ifndef __SMM__ static void enable_dev(device_t dev) { struct ec_lenovo_pmh7_config *conf = dev->chip_info; @@ -115,3 +117,5 @@ struct chip_operations ec_lenovo_pmh7_ops = { CHIP_NAME("Lenovo Power Management Hardware Hub 7") .enable_dev = enable_dev, }; +#endif +#endif |