summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2020-09-24 17:16:32 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-01 02:17:53 +0000
commit61d13c88ae46439e4c002394cef75bc44d00e339 (patch)
treea80cc819b51b4b134d81dad86f47a1ea23ed1f06
parent23cb0cc679aa4e7946f224ac007e8c03feeffda4 (diff)
downloadchrome-ec-61d13c88ae46439e4c002394cef75bc44d00e339.tar.gz
eldrid: encode the keyboard backlight and numeric pad to fw_config
Follow volteer(https://crrev.com/c/2397933). Encode the keyboard backlight and numeric pad feature to the fw_config. BUG=b:168426960 BRANCH=none TEST=make -j BOARD=eldrid TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ie2282c2eb61b4c65e36cdf65654e74de1cde7b37 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2428344 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/eldrid/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/eldrid/board.c b/board/eldrid/board.c
index e1baf7bf55..c665e9c9c1 100644
--- a/board/eldrid/board.c
+++ b/board/eldrid/board.c
@@ -23,6 +23,7 @@
#include "fan_chip.h"
#include "gpio.h"
#include "hooks.h"
+#include "keyboard_raw.h"
#include "lid_switch.h"
#include "keyboard_scan.h"
#include "power.h"
@@ -390,6 +391,10 @@ __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()) ||
+ get_board_id() < 1)
+ keyboard_raw_set_cols(KEYBOARD_COLS_NO_KEYPAD);
}
/******************************************************************************/