summaryrefslogtreecommitdiff
path: root/baseboard/volteer/cbi_ec_fw_config.c
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2020-09-08 19:27:39 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-22 15:59:22 +0000
commitebc46d5c4346872860755175033cccd43ca1d924 (patch)
treeb191fb345dc385c67cd8db31f3e92f1ff7fa6d9c /baseboard/volteer/cbi_ec_fw_config.c
parentc414ce49403052368a4743521018f39f1461ec00 (diff)
downloadchrome-ec-ebc46d5c4346872860755175033cccd43ca1d924.tar.gz
volteer: encode the keyboard backlight and numeric pad to fw_config
In order to support the keyboard backlight and numeric pad switching, we need to encode the keyboard backlight and numeric pad feature to the fw_config. BUG=b:166707536 BRANCH=None TEST=flash the ec.bin to the DUT and checked the keyboard function. Change-Id: I2f85377acd85a0dae635d7bf4fe36c47ce01e9d7 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2397933 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard/volteer/cbi_ec_fw_config.c')
-rw-r--r--baseboard/volteer/cbi_ec_fw_config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/baseboard/volteer/cbi_ec_fw_config.c b/baseboard/volteer/cbi_ec_fw_config.c
index 788f152b92..12b96ff5b4 100644
--- a/baseboard/volteer/cbi_ec_fw_config.c
+++ b/baseboard/volteer/cbi_ec_fw_config.c
@@ -39,4 +39,13 @@ bool ec_cfg_has_tabletmode(void)
return (fw_config.tabletmode == TABLETMODE_ENABLED);
}
+bool ec_cfg_has_keyboard_backlight(void)
+{
+ return (fw_config.kb_bl == KEYBOARD_BACKLIGHT_ENABLED);
+}
+
+bool ec_cfg_has_numeric_pad(void)
+{
+ return (fw_config.num_pad == NUMERIC_PAD_ENABLED);
+}