T60: Add support for Ultrabay Legacy I/O devices (40Y8122)
[coreboot.git] / src / ec / lenovo / pmh7 / pmh7.c
index 30460c9021aa6486dc72308012b09f7ce1bcc5d5..844e233e9f0605c2e2b908a1e37358fb90cbc208 100644 (file)
@@ -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