summaryrefslogtreecommitdiff
path: root/board/volteer
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 /board/volteer
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 'board/volteer')
-rw-r--r--board/volteer/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/volteer/board.c b/board/volteer/board.c
index 2aef1e914b..3ad5f588a0 100644
--- a/board/volteer/board.c
+++ b/board/volteer/board.c
@@ -26,6 +26,7 @@
#include "fan_chip.h"
#include "gpio.h"
#include "hooks.h"
+#include "keyboard_raw.h"
#include "keyboard_scan.h"
#include "lid_switch.h"
#include "power.h"
@@ -440,6 +441,9 @@ __override void board_cbi_init(void)
default:
CPRINTS("%sID %d not supported", db_type_prefix, usb_db);
}
+
+ if (!IS_ENABLED(TEST_BUILD) && !ec_cfg_has_numeric_pad())
+ keyboard_raw_set_cols(KEYBOARD_COLS_NO_KEYPAD);
}
/******************************************************************************/