summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWei-Ning Huang <wnhuang@google.com>2017-05-02 19:32:52 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-05-06 19:52:32 -0700
commit8c26ccbc151e8e270e04af74719d5e4befcc8ff3 (patch)
tree887ad44804131db4a7384be510462fd7b3311a0a /include
parenta5a3fa2d13b4b18f1244ae408a778c5e88130a6f (diff)
downloadchrome-ec-8c26ccbc151e8e270e04af74719d5e4befcc8ff3.tar.gz
uart: add config to optionally enable EC_CMD_CONSOLE_READ v1
The cros_ec_debugfs creates the `console_log` debugfs entry if EC supports EC_CMD_CONSOLE_READ version 1. On device where i2c command latency is critical, periodic console_read is impacting the timing of commands. BRANCH=none BUG=b:37584134 TEST=on rose with CONFIG_CONSOLE_ENABLE_READ_V1 undefined, the kernel should not create cros_tp/console_log. Change-Id: I40d0b959ef36f2f410155fa30e01c8169032a3e9 Signed-off-by: Wei-Ning Huang <wnhuang@google.com> Reviewed-on: https://chromium-review.googlesource.com/494546 Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 2b08abde9b..817dc659f6 100644
--- a/include/config.h
+++ b/include/config.h
@@ -775,6 +775,12 @@
#undef CONFIG_CONSOLE_COMMAND_FLAGS_DEFAULT
/*
+ * Enable EC_CMD_CONSOLE_READ V1. One could disable this config to prevent
+ * kernel from creating the `console_log` debugfs entry.
+ */
+#define CONFIG_CONSOLE_ENABLE_READ_V1
+
+/*
* Number of entries in console history buffer.
*
* Boards may #undef this to reduce memory usage.