From 70bbc2af478e37d3c74d02d674b96d99da279289 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 6 Apr 2021 13:03:44 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808146 Reviewed-by: Simon Glass --- zephyr/Kconfig | 26 +------------------------- zephyr/Kconfig.espi | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 zephyr/Kconfig.espi 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 -- cgit v1.2.1