summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-28 11:48:22 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-14 18:12:49 +0000
commite4953299464ca66da6a5766d1a9e782ab6f9eaae (patch)
treee0e3e00370e4e3efd4fc1b4295ac5f795383c9c0
parentcd360540f24d2e5eb51f7fafe92ffa6fe71b3811 (diff)
downloadchrome-ec-e4953299464ca66da6a5766d1a9e782ab6f9eaae.tar.gz
herobrine_npcx9: Remove 3.3V rail control
The 3.3V rail is not controlled by EC. Remove the control. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: Id03f0b4943ce0cc19b7ac286e866d06339719223 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993215 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/herobrine_npcx9/build.mk1
-rw-r--r--board/herobrine_npcx9/power.c22
2 files changed, 0 insertions, 23 deletions
diff --git a/board/herobrine_npcx9/build.mk b/board/herobrine_npcx9/build.mk
index ae0d63b202..b84e3e6f68 100644
--- a/board/herobrine_npcx9/build.mk
+++ b/board/herobrine_npcx9/build.mk
@@ -15,6 +15,5 @@ board-y+=battery.o
board-y+=board.o
board-y+=hibernate.o
board-y+=led.o
-board-y+=power.o
board-y+=switchcap.o
board-y+=usbc_config.o
diff --git a/board/herobrine_npcx9/power.c b/board/herobrine_npcx9/power.c
deleted file mode 100644
index 0a55b49d3d..0000000000
--- a/board/herobrine_npcx9/power.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* 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.
- */
-
-#include "gpio.h"
-#include "hooks.h"
-
-void board_chipset_pre_init(void)
-{
- /* Turn on the 3.3V rail */
- gpio_set_level(GPIO_EN_PP3300_A, 1);
-}
-DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, board_chipset_pre_init, HOOK_PRIO_DEFAULT);
-
-void board_chipset_shutdown_complete(void)
-{
- /* Turn off the 3.3V and 5V rails. */
- gpio_set_level(GPIO_EN_PP3300_A, 0);
-}
-DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN_COMPLETE, board_chipset_shutdown_complete,
- HOOK_PRIO_DEFAULT);