zephyr/subsys/mgmt/ec_host_cmd/Kconfig
Jett Rink 1972f0b7f4 ec_host_cmd: add ec host command handler framework
Add a generic host command handler framework that allows users to
declare new host command handlers with the HOST_COMMAND_HANDLER macro
at build time. The framework will handle incoming messages from the
host command peripheral device and forwards the incoming data to the
appropriate host command handler, which is looked up by id.

The framework will also send the response from the handler back to the
host command peripheral device. The device handles sending the data on
the physical bus.

This type of host command communication is typically done on an embedded
controller for a notebook or computer. The host would be the main
application processor (aka AP, CPU, SoC).

Signed-off-by: Jett Rink <jettrink@google.com>
2020-09-04 14:50:45 -04:00

29 lines
782 B
Plaintext

# Host command handler functionality
# Copyright (c) 2020 Google LLC
# SPDX-License-Identifier: Apache-2.0
menu "Host command handler subsystem"
config EC_HOST_CMD
bool "Support Embedded Controller host command handler subsystem"
help
Enable host command processing for embedded controllers on notebook
computers. Enabling this option requires specifying a chosen
zephyr,ec-host-interface device as the ec host command peripheral that
receive incoming host command requests to process.
if EC_HOST_CMD
config EC_HOST_CMD_HANDLER_STACK_SIZE
int "Stack size for the EC host command handler thread"
default 512
config EC_HOST_CMD_HANDLER_TX_BUFFER
int "Buffer size in bytes for TX buffer shared by all EC host commands"
default 256
endif # EC_HOST_CMD
endmenu