diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-02-01 10:44:26 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-02-01 10:44:26 +0000 |
commit | 4a6c9d159c38ed52397fa7b98b57d48e8c53c427 (patch) | |
tree | b60e99ec6f252e3177f22639a695c3f5da7b8278 /src/ec/lenovo/pmh7/pmh7.h | |
parent | 478b77d3884f8c1ca54144380a417ba7a73162ea (diff) | |
download | coreboot-4a6c9d159c38ed52397fa7b98b57d48e8c53c427.tar.xz |
Add support for the Lenovo PMH7 embedded controller
Lenovo PMH7 (Power Management Hardware Hub) is found in
most recent (starting with X60/T60 AFAIK) Lenovo/IBM Laptops.
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Patrick Georgi <patrick.georgi@secunet.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.h')
-rw-r--r-- | src/ec/lenovo/pmh7/pmh7.h | 15 |
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 |