diff options
-rw-r--r-- | board/kunimitsu/board.h | 1 | ||||
-rw-r--r-- | common/keyboard_8042.c | 3 | ||||
-rw-r--r-- | common/keyboard_scan.c | 3 | ||||
-rw-r--r-- | include/config.h | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/board/kunimitsu/board.h b/board/kunimitsu/board.h index 3149e07f9d..6ea8be6379 100644 --- a/board/kunimitsu/board.h +++ b/board/kunimitsu/board.h @@ -111,6 +111,7 @@ #undef CONFIG_CMD_ACCEL_INFO #undef CONFIG_CMD_ACCELS #undef CONFIG_CMD_HASH +#undef CONFIG_CMD_KEYBOARD #undef CONFIG_CMD_SHMEM #undef CONFIG_CMD_TEMP_SENSOR #undef CONFIG_CMD_TIMERINFO diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c index 96321e28f3..b4b39008c3 100644 --- a/common/keyboard_8042.c +++ b/common/keyboard_8042.c @@ -962,7 +962,7 @@ test_mockable void keyboard_update_button(enum keyboard_button_type button, /*****************************************************************************/ /* Console commands */ - +#ifdef CONFIG_CMD_KEYBOARD static int command_typematic(int argc, char **argv) { int i; @@ -1189,6 +1189,7 @@ DECLARE_CONSOLE_COMMAND(8042, command_8042, " kblog | kbd]", "Print 8042 state in one place", NULL); +#endif /*****************************************************************************/ diff --git a/common/keyboard_scan.c b/common/keyboard_scan.c index e67fe81b1b..5e71554e3f 100644 --- a/common/keyboard_scan.c +++ b/common/keyboard_scan.c @@ -713,7 +713,7 @@ DECLARE_HOST_COMMAND(EC_CMD_MKBP_SIMULATE_KEY, /*****************************************************************************/ /* Console commands */ - +#ifdef CONFIG_CMD_KEYBOARD static int command_ksstate(int argc, char **argv) { if (argc > 1 && !parse_bool(argv[1], &print_state_changes)) @@ -779,3 +779,4 @@ DECLARE_CONSOLE_COMMAND(kbpress, command_keyboard_press, "[col row [0 | 1]]", "Simulate keypress", NULL); +#endif diff --git a/include/config.h b/include/config.h index 70773848e6..544fcc1ed9 100644 --- a/include/config.h +++ b/include/config.h @@ -457,6 +457,7 @@ #define CONFIG_CMD_I2C_XFER #undef CONFIG_CMD_I2CWEDGE #define CONFIG_CMD_IDLE_STATS +#define CONFIG_CMD_KEYBOARD #undef CONFIG_CMD_ILIM #define CONFIG_CMD_INA #define CONFIG_CMD_REGULATOR |