summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2013-11-13 18:31:24 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2013-12-15 17:49:23 +0100
commit2c8766891444eb49db2ec54146c7e83c0c1f8304 (patch)
tree7d478594230ace3c241ea4f19bc9641f0a01d5cf /src/ec/lenovo/pmh7
parentcc2f3452e4bd191aef8436863628685f30c925ea (diff)
downloadcoreboot-2c8766891444eb49db2ec54146c7e83c0c1f8304.tar.xz
ec/lenovo/h8: Fix peripheral init without CMOS config
Currently H8 skips important init if unable to access CMOS config. Change default to enable all features to have a sane system without using CMOS config. Change-Id: I4448ccd21beae8ad23eb22391770c6fe3b83e3b4 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4515 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/ec/lenovo/pmh7')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c
index b02b52aa8e..9607c83e52 100644
--- a/src/ec/lenovo/pmh7/pmh7.c
+++ b/src/ec/lenovo/pmh7/pmh7.c
@@ -113,8 +113,9 @@ static void enable_dev(device_t dev)
pmh7_backlight_enable(conf->backlight_enable);
pmh7_dock_event_enable(conf->dock_event_enable);
- if (get_option(&val, "touchpad") == CB_SUCCESS)
- pmh7_touchpad_enable(val);
+ if (get_option(&val, "touchpad") != CB_SUCCESS)
+ val = 1;
+ pmh7_touchpad_enable(val);
}
struct chip_operations ec_lenovo_pmh7_ops = {