summaryrefslogtreecommitdiff
path: root/chip/npcx/lpc.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-03-22 10:18:49 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-03-26 17:03:27 -0700
commit6a7fb0d39bf84d7199f0a3f1f9a32cd85dc1113e (patch)
tree66ed0813f563bb89527da05dbb1fa884b0e86df7 /chip/npcx/lpc.c
parentb57ad0e1b82f87e7882e3bd7d05b8e994ad5a414 (diff)
downloadchrome-ec-6a7fb0d39bf84d7199f0a3f1f9a32cd85dc1113e.tar.gz
lpc: remove lpc_host_reset
No one is using this method and it implies that all chipset should support the RCIN# Virtual Wire if using eSPI. Only large core chips use RCIN#; small core chips don't. This method was introduced for skylake and has since been replaced since CL:575947 was merged. BRANCH=none BUG=none TEST=build all Change-Id: Ic541e3d61d1e0ecc64a0bb12385bdada40f0acf2 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/975904
Diffstat (limited to 'chip/npcx/lpc.c')
-rw-r--r--chip/npcx/lpc.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/chip/npcx/lpc.c b/chip/npcx/lpc.c
index 078474b2e5..518e15f957 100644
--- a/chip/npcx/lpc.c
+++ b/chip/npcx/lpc.c
@@ -792,33 +792,6 @@ int lpc_get_pltrst_asserted(void)
return IS_BIT_SET(NPCX_MSWCTL1, NPCX_MSWCTL1_PLTRST_ACT);
}
-void lpc_host_reset(void)
-{
- /* Host Reset Control will assert KBRST# (LPC) or RCIN# VW (eSPI) */
-#ifdef CONFIG_ESPI_VW_SIGNALS
- int timeout = 100; /* 100 * 10us = 1ms */
-
- /* Assert RCIN# VW to host */
- SET_BIT(NPCX_MSWCTL1, NPCX_MSWCTL1_HRSTOB);
-
- /* Poll for dirty bit to clear to indicate VW read by host */
- while ((NPCX_VWEVSM(2) & VWEVSM_DIRTY(1))) {
- if (!timeout--) {
- CPRINTS("RCIN# VW Timeout");
- break;
- }
- udelay(10);
- }
-
- /* Deassert RCIN# VW to host */
- CLEAR_BIT(NPCX_MSWCTL1, NPCX_MSWCTL1_HRSTOB);
-#else
- SET_BIT(NPCX_MSWCTL1, NPCX_MSWCTL1_HRSTOB);
- udelay(10);
- CLEAR_BIT(NPCX_MSWCTL1, NPCX_MSWCTL1_HRSTOB);
-#endif
-}
-
#ifndef CONFIG_ESPI
/* Initialize host settings by interrupt */
void lpc_lreset_pltrst_handler(void)