diff options
-rw-r--r-- | common/main.c | 2 | ||||
-rw-r--r-- | zephyr/app/ec/main.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c index 2e9fe5a444..c1626e41fc 100644 --- a/common/main.c +++ b/common/main.c @@ -185,7 +185,7 @@ test_mockable __keep int main(void) /* * Keyboard scan init/Button init can set recovery events to * indicate to host entry into recovery mode. Before this is - * done, lpc always report mask needs to be initialized + * done, LPC_HOST_EVENT_ALWAYS_REPORT mask needs to be initialized * correctly. */ #ifdef CONFIG_HOSTCMD_X86 diff --git a/zephyr/app/ec/main.c b/zephyr/app/ec/main.c index e297dae2d9..58b2b2a51e 100644 --- a/zephyr/app/ec/main.c +++ b/zephyr/app/ec/main.c @@ -10,6 +10,7 @@ #include "ec_tasks.h" #include "hooks.h" #include "keyboard_scan.h" +#include "lpc.h" #include "system.h" #include "vboot.h" #include "watchdog.h" @@ -32,6 +33,16 @@ void main(void) init_reset_log(); } + /* + * Keyboard scan init/Button init can set recovery events to + * indicate to host entry into recovery mode. Before this is + * done, LPC_HOST_EVENT_ALWAYS_REPORT mask needs to be initialized + * correctly. + */ + if (IS_ENABLED(CONFIG_HOSTCMD_X86)) { + lpc_init_mask(); + } + if (IS_ENABLED(HAS_TASK_KEYSCAN)) { keyboard_scan_init(); } |