summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-06-28 10:26:23 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-13 22:14:08 +0000
commit1f05c52d4e434fde0de9ccbfe5e7f418abec7c4f (patch)
tree321a027f43425c2c46bb595d720e67a6b674e08d /baseboard
parentb1ddd270bed26247aa276bf1adc1b74413c03279 (diff)
downloadchrome-ec-1f05c52d4e434fde0de9ccbfe5e7f418abec7c4f.tar.gz
herobrine: Move hibernate config to the board level
Move the config of hibernate wake source and hook from the baseboard level to the board level. The new Herobrine hardware will use different wake sources and have different hook. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx7 EC-OS and Zephyr images successfully. Change-Id: Idbad8f985252fdef0657427d5f8d5883029a641f Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993211 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/herobrine/baseboard.c9
-rw-r--r--baseboard/herobrine/build.mk1
-rw-r--r--baseboard/herobrine/hibernate.c13
3 files changed, 0 insertions, 23 deletions
diff --git a/baseboard/herobrine/baseboard.c b/baseboard/herobrine/baseboard.c
index e1eef9c374..3103aaf4c5 100644
--- a/baseboard/herobrine/baseboard.c
+++ b/baseboard/herobrine/baseboard.c
@@ -7,15 +7,6 @@
#include "i2c.h"
-/* Wake-up pins for hibernate */
-const enum gpio_signal hibernate_wake_pins[] = {
- GPIO_LID_OPEN,
- GPIO_AC_PRESENT,
- GPIO_POWER_BUTTON_L,
- GPIO_EC_RST_ODL,
-};
-const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
-
int board_allow_i2c_passthru(int port)
{
return (port == I2C_PORT_VIRTUAL_BATTERY);
diff --git a/baseboard/herobrine/build.mk b/baseboard/herobrine/build.mk
index f4d2b5edb6..f007fd7118 100644
--- a/baseboard/herobrine/build.mk
+++ b/baseboard/herobrine/build.mk
@@ -7,6 +7,5 @@
#
baseboard-y+=baseboard.o
-baseboard-y+=hibernate.o
baseboard-y+=usbc_config.o
baseboard-y+=usb_pd_policy.o
diff --git a/baseboard/herobrine/hibernate.c b/baseboard/herobrine/hibernate.c
deleted file mode 100644
index c28082e75d..0000000000
--- a/baseboard/herobrine/hibernate.c
+++ /dev/null
@@ -1,13 +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 "system.h"
-
-void board_hibernate_late(void)
-{
- /* Set the hibernate GPIO to turn off the rails */
- gpio_set_level(GPIO_HIBERNATE_L, 0);
-}