summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2023-02-13 13:01:46 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-21 06:20:10 +0000
commit1e4ac3b7d6bcaca171b8522d99317dc3272529f2 (patch)
tree748c41db666ab1f8eddbc79d207f52898fc1ca40 /include/config.h
parent8adc6caf9d7d1b40b310210fb0d45cf86ed9d61c (diff)
downloadchrome-ec-1e4ac3b7d6bcaca171b8522d99317dc3272529f2.tar.gz
common/button.c: Support configuring recovery buttons as active high.
Dedicated recovery buttons may be active high rather than the current default of active low. Add config options for specifying flags for dedicated recovery buttons following the style of power button flags. Since neither the power button flags config this is following, nor the dedicated recovery button configs themselves are surfaced to zephyr, add these dedicated recovery button flags configs to config_allowed.txt. While possible to add now, it would likely result in a non-functional implementation to be largely or entirely replaced when the first zephyr platform actually requires this functionality. BUG=b:268309238 TEST=none BRANCH=none Change-Id: Iba658735e87c20ace140a783c2a2242897baf8c1 Signed-off-by: Sam McNally <sammc@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4240910 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 57e48fc059..f9dee49661 100644
--- a/include/config.h
+++ b/include/config.h
@@ -846,6 +846,10 @@
#undef CONFIG_DEDICATED_RECOVERY_BUTTON
#undef CONFIG_DEDICATED_RECOVERY_BUTTON_2
+/* Configure recovery button. e.g. BUTTON_FLAG_ACTIVE_HIGH */
+#undef CONFIG_DEDICATED_RECOVERY_BUTTON_FLAGS
+#undef CONFIG_DEDICATED_RECOVERY_BUTTON_2_FLAGS
+
/*
* RISC-V core specific panic data is bigger than Cortex-M core specific panic
* data. Including this into union in panic_data structure causes whole