summaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-02-16 13:13:07 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-17 21:53:29 +0000
commite8a96e49e310cd6a8a5f915e3c53b92f18fb8ace (patch)
tree32fcbf152edee2649df37f9bee8cf6c9c2cc5e22 /include/console.h
parent844783bbd9e11ce936c78b03299197cc85adafd2 (diff)
downloadchrome-ec-e8a96e49e310cd6a8a5f915e3c53b92f18fb8ace.tar.gz
zephyr: add support for disabling console channels
Add support in the device tree for disabling console output channels by default. BUG=b:180421120 BRANCH=none TEST=make buildall TEST=zmake testall TEST=On Volteer, verify "hostcmd" channel is disabled by default Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I9fa1fe78ee3927346ede8e75378260f6061075cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2698268 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 2c8503f0ee..47c2113ec3 100644
--- a/include/console.h
+++ b/include/console.h
@@ -103,6 +103,20 @@ enum console_channel {
#define CC_ALL 0xffffffffU
/**
+ * Enable a console channel by name
+ *
+ * @param name Console channel name
+ */
+void console_channel_enable(const char *name);
+
+/**
+ * Disable a console channel by name
+ *
+ * @param name Console channel name
+ */
+void console_channel_disable(const char *name);
+
+/**
* Put a string to the console channel.
*
* @param channel Output chanel