summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-28 11:52:21 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-14 18:12:58 +0000
commit5e90b637a30bf2d8555e56b5d7aae7fa8894d658 (patch)
treeefeee7f6d5e79c6b6ba1ba19796a3a214c5ef3b6
parente4953299464ca66da6a5766d1a9e782ab6f9eaae (diff)
downloadchrome-ec-5e90b637a30bf2d8555e56b5d7aae7fa8894d658.tar.gz
herobrine_npcx9: Deprecate HIBERNATE_L control
The board uses the PSL to enable the core power and the old HIBERNATE_L rails, like TCPC, PPC, sensor, etc. Deprecate the related logic. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I1f378126cdac478e335ce06e16835df200fe94ca Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993216 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/herobrine_npcx9/build.mk1
-rw-r--r--board/herobrine_npcx9/hibernate.c24
2 files changed, 0 insertions, 25 deletions
diff --git a/board/herobrine_npcx9/build.mk b/board/herobrine_npcx9/build.mk
index b84e3e6f68..601c45a042 100644
--- a/board/herobrine_npcx9/build.mk
+++ b/board/herobrine_npcx9/build.mk
@@ -13,7 +13,6 @@ BASEBOARD:=herobrine
board-y+=battery.o
board-y+=board.o
-board-y+=hibernate.o
board-y+=led.o
board-y+=switchcap.o
board-y+=usbc_config.o
diff --git a/board/herobrine_npcx9/hibernate.c b/board/herobrine_npcx9/hibernate.c
deleted file mode 100644
index f6ebf462aa..0000000000
--- a/board/herobrine_npcx9/hibernate.c
+++ /dev/null
@@ -1,24 +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"
-
-void board_hibernate_late(void)
-{
- /* Set the hibernate GPIO to turn off the rails */
- gpio_set_level(GPIO_HIBERNATE_L, 0);
-}
-
-void board_hibernate(void)
-{
- /*
- * Sensors are unpowered in hibernate. Apply PD to the
- * interrupt lines such that they don't float.
- */
- gpio_set_flags(GPIO_ACCEL_GYRO_INT_L,
- GPIO_INPUT | GPIO_PULL_DOWN);
- gpio_set_flags(GPIO_LID_ACCEL_INT_L,
- GPIO_INPUT | GPIO_PULL_DOWN);
-}