zephyr/kconfig: put KB protocol because KB option
The PLATFORM_EC_KEYBOARD_PROTOCOL_8042 should be guarded
by the PLATFORM_EC_KEYBOARD option.
BRANCH=none
TEST=build posix-ec with CL stack
@@ -47,6 +47,8 @@ menuconfig PLATFORM_EC_KEYBOARD
keyboard_state_changed() (for i8042) or its client calling
keyboard_scan_get_state() (for MKBP).
+if PLATFORM_EC_KEYBOARD
+
choice "Protocol select"
prompt "Select the keyboard protocol to use"
@@ -62,6 +64,8 @@ config PLATFORM_EC_KEYBOARD_PROTOCOL_8042
endchoice # PLATFORM_EC_KEYBOARD
+endif # PLATFORM_EC_KEYBOARD
+
config PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042
bool "Enable the keyboard commands"
default y if PLATFORM_EC_KEYBOARD_PROTOCOL_8042
