summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7/pmh7.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.h')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.h b/src/ec/lenovo/pmh7/pmh7.h
new file mode 100644
index 0000000000..2999ef6197
--- /dev/null
+++ b/src/ec/lenovo/pmh7/pmh7.h
@@ -0,0 +1,15 @@
+#ifndef EC_LENOVO_PMH7_H
+#define EC_LENOVO_PMH7_H
+
+#define EC_LENOVO_PMH7_INDEX 0x77
+
+#define EC_LENOVO_PMH7_BASE 0x15e0
+#define EC_LENOVO_PMH7_ADDR (EC_LENOVO_PMH7_BASE + 0x0c)
+#define EC_LENOVO_PMH7_DATA (EC_LENOVO_PMH7_BASE + 0x0e)
+
+void pmh7_register_set_bit(int reg, int bit);
+void pmh7_register_clear_bit(int reg, int bit);
+char pmh7_register_read(int reg);
+void pmh7_register_write(int reg, int val);
+
+#endif