summaryrefslogtreecommitdiff
path: root/baseboard/octopus/variant_ec_ite8320.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-08-07 15:03:42 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-08-23 17:42:49 -0700
commitbb7cee5a6b9a160c9df6a073ce16d5595d1433b4 (patch)
treed1d3a43ced27d71f9d51844cb52b81f36946c015 /baseboard/octopus/variant_ec_ite8320.c
parent7487f9eef6159b9b3253b4d30e9dd0b114bd07e1 (diff)
downloadchrome-ec-bb7cee5a6b9a160c9df6a073ce16d5595d1433b4.tar.gz
octopus: update bip for lower power hibernate
Pulled hibernate_wake_pins into each EC variant because the 4/5 item array was getting pretty fractured. Bip EC now wakes up based on PPC interrupts instead of AC_PRESENT. This allows the PPCs to disable the SNK FET (and all OVP circuitry). The power won't get from the USB-C connector to the battery charger until the EC wakes up, but that isn't an issue. BRANCH=none BUG=b:111006203,b:111520593 TEST=bip PD_A rail is 3.97mW during hiberate with this CL stack Change-Id: I2d08ca5bb2b0b7181c7a0f0c5894b8f59ccbd85f Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1166184 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard/octopus/variant_ec_ite8320.c')
-rw-r--r--baseboard/octopus/variant_ec_ite8320.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/baseboard/octopus/variant_ec_ite8320.c b/baseboard/octopus/variant_ec_ite8320.c
index 7e81a00ed1..459ea113b3 100644
--- a/baseboard/octopus/variant_ec_ite8320.c
+++ b/baseboard/octopus/variant_ec_ite8320.c
@@ -10,6 +10,22 @@
#include "util.h"
/******************************************************************************/
+/* Wake up pins */
+const enum gpio_signal hibernate_wake_pins[] = {
+ GPIO_LID_OPEN,
+ GPIO_POWER_BUTTON_L,
+ /*
+ * The PPC interrupts (which fire when Vbus changes) is a proxy for
+ * AC_PRESENT. This allows us to turn off the PPC SNK FETS during
+ * hibernation which saves power. Once the EC wakes up, it will enable
+ * the SNK FETs and power will make it to the rest of the system.
+ */
+ GPIO_USB_C0_PD_INT_ODL,
+ GPIO_USB_C1_PD_INT_ODL,
+};
+const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
+
+/******************************************************************************/
/* I2C port map configuration */
const struct i2c_port_t i2c_ports[] = {
{"power", IT83XX_I2C_CH_A, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA},