diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index 83c1a52bd7..72166713d6 100644 --- a/include/config.h +++ b/include/config.h @@ -2660,7 +2660,8 @@ * SLP signals (SLP_S3 and SLP_S4) use virtual wires intead of physical pins * with eSPI interface. */ -#undef CONFIG_HOSTCMD_ESPI_VW_SLP_SIGNALS +#undef CONFIG_HOSTCMD_ESPI_VW_SLP_S3 +#undef CONFIG_HOSTCMD_ESPI_VW_SLP_S4 /* MCHP next two items are EC eSPI slave configuration */ /* Maximum clock frequence eSPI EC slave advertises @@ -4362,6 +4363,19 @@ #include "config_chip.h" #include "board.h" +/* + * Define CONFIG_HOST_ESPI_VW_POWER_SIGNAL if any power signals from the host + * are configured as virtual wires. + */ +#if defined(CONFIG_HOSTCMD_ESPI_VW_SLP_S3) || \ + defined(CONFIG_HOSTCMD_ESPI_VW_SLP_S4) +#define CONFIG_HOST_ESPI_VW_POWER_SIGNAL +#endif + +#if defined(CONFIG_HOST_ESPI_VW_POWER_SIGNAL) && !defined(CONFIG_HOSTCMD_ESPI) +#error Must enable eSPI to enable virtual wires. +#endif + /******************************************************************************/ /* * Automatically define CONFIG_HOSTCMD_X86 if either child option is defined. |