summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-06 13:03:44 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-07 06:03:05 +0000
commit70bbc2af478e37d3c74d02d674b96d99da279289 (patch)
treeaeed9c97439ed4e070d8a0fe801415b2747d4d7f
parent835d9a445e09d5b6f8c330c16f654f9ba63bbe32 (diff)
downloadchrome-ec-70bbc2af478e37d3c74d02d674b96d99da279289.tar.gz
zephyr: kconfig: move espi configs to separate file
Clean up the root Kconfig for Zephyr by moving sub configs to separate file (Kconfig.espi). BRANCH=none BUG=none TEST=zmake testall Change-Id: Ie5bd22b1179b03370a3e45cc91738b767865e2a0 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808146 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/Kconfig26
-rw-r--r--zephyr/Kconfig.espi28
2 files changed, 29 insertions, 25 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 7050a5d951..feda93be89 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -38,6 +38,7 @@ rsource "Kconfig.board_version"
rsource "Kconfig.console"
rsource "Kconfig.console_cmd_mem"
rsource "Kconfig.debug_assert"
+rsource "Kconfig.espi"
rsource "Kconfig.header"
rsource "Kconfig.keyboard"
rsource "Kconfig.led"
@@ -220,31 +221,6 @@ menuconfig PLATFORM_EC_ESPI
https://www.intel.com/content/dam/support/us/en/documents/software/chipset-software/327432-004_espi_base_specification_rev1.0_cb.pdf
-if PLATFORM_EC_ESPI
-
-config PLATFORM_EC_ESPI_VW_SLP_S3
- bool "SLP_S3 is an eSPI virtual wire instead of a GPIO"
- help
- For power sequencing, use an eSPI virtual wire instead of
- defining GPIO_PCH_SLP_S3 in gpio_map.h.
-
-config PLATFORM_EC_ESPI_VW_SLP_S4
- bool "SLP_S4 is an eSPI virtual wire instead of a GPIO"
- help
- For power sequencing, use an eSPI virtual wire instead of
- defining GPIO_PCH_SLP_S4 in gpio_map.h.
-
-config PLATFORM_EC_ESPI_RESET_SLP_SX_VW_ON_ESPI_RST
- bool "Reset SLP VW signals on eSPI reset"
- help
- Enable this config to reset SLP* VW when eSPI_RST is asserted
- for the Global Reset event case. Don't enable this config if
- the platform implements the Deep-Sx entry as EC needs to
- maintain these pins' states per request. Note that this is
- currently unimplemented for Zephyr. Please see b/183148073.
-
-endif # PLATFORM_EC_ESPI
-
config PLATFORM_EC_EXTPOWER_GPIO
bool "GPIO-based external power detection"
depends on PLATFORM_EC_HOOKS && PLATFORM_EC_HOSTCMD
diff --git a/zephyr/Kconfig.espi b/zephyr/Kconfig.espi
new file mode 100644
index 0000000000..81b9f11e57
--- /dev/null
+++ b/zephyr/Kconfig.espi
@@ -0,0 +1,28 @@
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if PLATFORM_EC_ESPI
+
+config PLATFORM_EC_ESPI_VW_SLP_S3
+ bool "SLP_S3 is an eSPI virtual wire instead of a GPIO"
+ help
+ For power sequencing, use an eSPI virtual wire instead of
+ defining GPIO_PCH_SLP_S3 in gpio_map.h.
+
+config PLATFORM_EC_ESPI_VW_SLP_S4
+ bool "SLP_S4 is an eSPI virtual wire instead of a GPIO"
+ help
+ For power sequencing, use an eSPI virtual wire instead of
+ defining GPIO_PCH_SLP_S4 in gpio_map.h.
+
+config PLATFORM_EC_ESPI_RESET_SLP_SX_VW_ON_ESPI_RST
+ bool "Reset SLP VW signals on eSPI reset"
+ help
+ Enable this config to reset SLP* VW when eSPI_RST is asserted
+ for the Global Reset event case. Don't enable this config if
+ the platform implements the Deep-Sx entry as EC needs to
+ maintain these pins' states per request. Note that this is
+ currently unimplemented for Zephyr. Please see b/183148073.
+
+endif # PLATFORM_EC_ESPI \ No newline at end of file