summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.console
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/Kconfig.console')
-rw-r--r--zephyr/Kconfig.console24
1 files changed, 23 insertions, 1 deletions
diff --git a/zephyr/Kconfig.console b/zephyr/Kconfig.console
index 8f0241a4d9..74de199067 100644
--- a/zephyr/Kconfig.console
+++ b/zephyr/Kconfig.console
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -66,3 +66,25 @@ menuconfig PLATFORM_EC_CONSOLE_DEBUG
Write all zephyr_print() messages to printk() also. Not recommended
outside of tests.
+
+config PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER
+ bool "Logging backend for the console buffer"
+ depends on PLATFORM_EC_HOSTCMD_CONSOLE
+ select LOG_OUTPUT
+ help
+ Enable the logging backend for the console buffer.
+
+ This will copy messages sent to the zephyr logging subsystem
+ to the EC console buffer. This allows the AP to access the
+ log messages with the console host command.
+
+config PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER_TMP_BUF_SIZE
+ int "Size of temporary buffer used by console buffer logging backend"
+ default 128 if LOG_MODE_DEFERRED
+ default 1
+ depends on PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER
+ help
+ The size of the temporary buffer used by the console buffer backend.
+ The logging subsystem will buffer up to this many bytes before calling
+ the backend in deferred logging mode. Ideally this will be large
+ enough to fit an entire log line.