From 8741abc79b0fd4d94873d96f28e423401dae75b3 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Fri, 25 Oct 2019 16:09:58 -0600 Subject: PCH_PLTRST_L: Use appropriate config option Define a GPIO for PCH_PLTRST_L based on CONFIG_HOSTCMD_ESPI, because that is the configuration option used to enable to use of the the GPIO signal name thus defined. Remove the now unused CONFIG_HOSTCMD_PLTRST_IS_VWIRE option. BUG=b:139553375,b:143288478 TEST=Build it83xx_evb, reef_it8320, and tglrvpu_ite BRANCH=none Change-Id: Ia0dbfee0c6c2eda566e79cad7ab6e0c685809c05 Signed-off-by: Abe Levkoy Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1881756 Reviewed-by: Daisuke Nojiri Reviewed-by: Keith Short --- chip/mchp/espi.c | 2 +- chip/mchp/lpc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'chip') diff --git a/chip/mchp/espi.c b/chip/mchp/espi.c index 95cd05c10a..1cc06d8f90 100644 --- a/chip/mchp/espi.c +++ b/chip/mchp/espi.c @@ -1429,7 +1429,7 @@ void espi_init(void) << MCHP_ESPI_CAP1_IO_BITPOS); #endif -#ifdef CONFIG_HOSTCMD_ESPI_PLTRST_IS_VWIRE +#ifdef CONFIG_HOSTCMD_ESPI MCHP_ESPI_IO_PLTRST_SRC = MCHP_ESPI_PLTRST_SRC_VW; #else MCHP_ESPI_IO_PLTRST_SRC = MCHP_ESPI_PLTRST_SRC_PIN; diff --git a/chip/mchp/lpc.c b/chip/mchp/lpc.c index 2b273e11c5..91adb7f17c 100644 --- a/chip/mchp/lpc.c +++ b/chip/mchp/lpc.c @@ -901,7 +901,7 @@ int lpc_get_pltrst_asserted(void) #ifdef CONFIG_HOSTCMD_ESPI /* * eSPI PLTRST# a VWire or side-band signal - * Controlled by CONFIG_HOSTCMD_ESPI_PLTRST_IS_VWIRE + * Controlled by CONFIG_HOSTCMD_ESPI */ return !espi_vw_get_wire(VW_PLTRST_L); #else -- cgit v1.2.1