summaryrefslogtreecommitdiff
path: root/common/keyboard_scan.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-08-03 17:24:46 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-05 22:08:48 +0000
commit540c8f4113eed87b45dc0871e8862e12d3e19ade (patch)
treef286d0e716b7b7adf21cecf35abbef8e62157c51 /common/keyboard_scan.c
parentc8af797e53fcacac5fde4c5f2beeb7bfce207146 (diff)
downloadchrome-ec-540c8f4113eed87b45dc0871e8862e12d3e19ade.tar.gz
Drop some obsolete boards
samus: AUE in M91, M92 pushed to stable already samus_pd: samus pd chip dragonegg: canceled cheza: canceled flapjack_scp: flapjack was canceled atlas_ish: atlas shipped, but ish project canceled sklrvp,glkrvp: these are pretty old intel reference boards and the portage overlays were already deleted ... assume nobody needs the EC firmware anymore either BUG=none BRANCH=none TEST=buildall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I794867ac82f37ffa2267e2e59ac02bc381688c57 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069716 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/keyboard_scan.c')
-rw-r--r--common/keyboard_scan.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/common/keyboard_scan.c b/common/keyboard_scan.c
index a1e17bc61d..6584a55d84 100644
--- a/common/keyboard_scan.c
+++ b/common/keyboard_scan.c
@@ -376,47 +376,6 @@ static int check_runtime_keys(const uint8_t *state)
int num_press = 0;
int c;
-#ifdef BOARD_SAMUS
- int16_t chg_override;
-
- /*
- * TODO(crosbug.com/p/34850): remove these hot-keys for samus, should
- * be done at higher level than this.
- */
- /*
- * On samus, ctrl + search + 0|1|2 sets the active charge port
- * by sending the charge override host command. Should only be sent
- * when chipset is in S0. Note that 'search' and '1' keys are on
- * the same column.
- */
- if ((state[KEYBOARD_COL_LEFT_CTRL] == KEYBOARD_MASK_LEFT_CTRL ||
- state[KEYBOARD_COL_RIGHT_CTRL] == KEYBOARD_MASK_RIGHT_CTRL) &&
- ((state[KEYBOARD_COL_SEARCH] & KEYBOARD_MASK_SEARCH) ==
- KEYBOARD_MASK_SEARCH) &&
- chipset_in_state(CHIPSET_STATE_ON)) {
- if (state[KEYBOARD_COL_KEY_0] == KEYBOARD_MASK_KEY_0) {
- /* Charge from neither port */
- chg_override = -2;
- pd_host_command(EC_CMD_PD_CHARGE_PORT_OVERRIDE, 0,
- &chg_override, 2, NULL, 0);
- return 0;
- } else if (state[KEYBOARD_COL_KEY_1] ==
- (KEYBOARD_MASK_KEY_1 | KEYBOARD_MASK_SEARCH)) {
- /* Charge from port 0 (left side) */
- chg_override = 0;
- pd_host_command(EC_CMD_PD_CHARGE_PORT_OVERRIDE, 0,
- &chg_override, 2, NULL, 0);
- return 0;
- } else if (state[KEYBOARD_COL_KEY_2] == KEYBOARD_MASK_KEY_2) {
- /* Charge from port 1 (right side) */
- chg_override = 1;
- pd_host_command(EC_CMD_PD_CHARGE_PORT_OVERRIDE, 0,
- &chg_override, 2, NULL, 0);
- return 0;
- }
- }
-#endif
-
/*
* All runtime key combos are (right or left ) alt + volume up + (some
* key NOT on the same col as alt or volume up )