summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7/pmh7.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-04-17 12:54:32 +0000
committerSven Schnelle <svens@stackframe.org>2011-04-17 12:54:32 +0000
commit1b9d2ee6ca80a0ac9a946d3fad4efb884998622c (patch)
tree00dda9442af21c999b53f834eaa5491d3b4fd0f2 /src/ec/lenovo/pmh7/pmh7.c
parent4e67731011fa36a6f211ae150a38461664e6ccc0 (diff)
PMH7: Add dock event control
Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Sven Schnelle <svens@stackframe.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.c')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c
index ba378666a2..042a4edbf7 100644
--- a/src/ec/lenovo/pmh7/pmh7.c
+++ b/src/ec/lenovo/pmh7/pmh7.c
@@ -33,6 +33,14 @@ void pmh7_backlight_enable(int onoff)
pmh7_register_clear_bit(0x50, 5);
}
+void pmh7_dock_event_enable(int onoff)
+{
+ if (onoff)
+ pmh7_register_set_bit(0x60, 3);
+ else
+ pmh7_register_clear_bit(0x60, 3);
+
+}
void pmh7_register_set_bit(int reg, int bit)
{
char val;
@@ -78,6 +86,7 @@ static void enable_dev(device_t dev)
resource->gran = 5;
pmh7_backlight_enable(conf->backlight_enable);
+ pmh7_dock_event_enable(conf->dock_event_enable);
}
struct chip_operations ec_lenovo_pmh7_ops = {