summaryrefslogtreecommitdiff
path: root/chip/mchp/system.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-05-21 10:22:55 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-22 21:56:39 -0700
commitdf06639b1d4fd2798e577f9aead6bc4495d5f3b5 (patch)
tree060bf073cf3e24c75ffb78aa62855cc28c089c42 /chip/mchp/system.c
parentfddf4e703d8673b8ea62f81c8aba3943cfeffea5 (diff)
downloadchrome-ec-df06639b1d4fd2798e577f9aead6bc4495d5f3b5.tar.gz
lpc/espi: convert ec chip code to use granular option
Break the ec chip code up with the more granular CONFIG_HOSTCMD_(X86|LPC|ESPI) options. BRANCH=none BUG=chromium:818804 TEST=Full stack builds and works on yorp (espi) and grunt (lpc) Change-Id: Ie272787b2425175fe36b06fcdeeee90ec5ccbe95 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1067502 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/mchp/system.c')
-rw-r--r--chip/mchp/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mchp/system.c b/chip/mchp/system.c
index 24aafdbf1e..fa844a2304 100644
--- a/chip/mchp/system.c
+++ b/chip/mchp/system.c
@@ -151,7 +151,7 @@ void system_pre_init(void)
MCHP_EC_AHB_ERR = 0; /* write any value to clear */
MCHP_EC_AHB_ERR_EN = 0; /* enable capture of address on error */
-#ifdef CONFIG_ESPI
+#ifdef CONFIG_HOSTCMD_ESPI
MCHP_EC_GPIO_BANK_PWR |= MCHP_EC_GPIO_BANK_PWR_VTR3_18;
#endif