summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/lenovo/h8/h8.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index e44a2781f5..c67b3b3872 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -70,6 +70,14 @@ static void h8_fn_ctrl_swap(int on)
ec_clr_bit(0xce, 4);
}
+static void h8_sticky_fn(int on)
+{
+ if (on)
+ ec_set_bit(0x0, 3);
+ else
+ ec_clr_bit(0x0, 3);
+}
+
static void h8_log_ec_version(void)
{
char ecfw[17];
@@ -202,6 +210,10 @@ static void h8_enable(device_t dev)
val = 0;
h8_fn_ctrl_swap(val);
+ if (get_option(&val, "sticky_fn") != CB_SUCCESS)
+ val = 0;
+ h8_sticky_fn(val);
+
if (get_option(&val, "first_battery") != CB_SUCCESS)
val = 1;