diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-11-03 12:09:49 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-09 19:08:59 +0000 |
commit | 621d0ee7ce950e99763175cca796f51df29785a6 (patch) | |
tree | 70ee34f15fd7046e2b4a6bb3bc94fe621d7eeccd /zephyr/Kconfig | |
parent | df7862fa54ab94007110e1683351ee8d24a74f9a (diff) | |
download | chrome-ec-621d0ee7ce950e99763175cca796f51df29785a6.tar.gz |
zephyr: shim: use a Kconfig option for building power.c
Use an automatic Kconfig option to include power.c in the build, rather
than including it unconditionally.
Removes some precompiler guards from the source file and also move some
macro that are only used in power.c out of the header file.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I021ec1384ef374f1c1dc841ea861e848ee9e65f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4003277
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r-- | zephyr/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 5e3a7d3302..7f9dee962c 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -465,6 +465,14 @@ config PLATFORM_EC_POWER_COMMON help Compile common code for AP power state machine. +config CROS_EC_POWER_SIGNAL_LIST + bool "Define the power signal list from the devicetree" + default y + depends on $(dt_nodelabel_enabled,power_signal_list) + help + Define the global power_signal_list[] from the devicetree. Requires a + node with nodelabel power_signal_list. + config PLATFORM_EC_MKBP_EVENT bool "MKBP event" help |