summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2020-12-09 07:51:12 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-11 19:23:23 +0000
commit73ea2e6702c771b026934d1327796e1024d44438 (patch)
tree7fc969945de813aaf1bdaeff58f0576484b9d9ce /baseboard
parent942e7ade3321fb166b7dc3739cafb4f25d41b528 (diff)
downloadchrome-ec-73ea2e6702c771b026934d1327796e1024d44438.tar.gz
guybrush: config hibernate wake pins and spi flash
Disable external SPI interface. Enable hibernate wake pins. Following instructions in configuration/ec_chipset.md BUG=b:175117284 BRANCH=None TEST=Build Change-Id: I428be0a0d641ecc6fc210460ae4f3102a022c6f3 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2581978 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/guybrush/baseboard.c9
-rw-r--r--baseboard/guybrush/baseboard.h5
2 files changed, 12 insertions, 2 deletions
diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c
index 887fdfe514..4238419c6f 100644
--- a/baseboard/guybrush/baseboard.c
+++ b/baseboard/guybrush/baseboard.c
@@ -7,6 +7,15 @@
#include "gpio.h"
+/* Wake Sources */
+const enum gpio_signal hibernate_wake_pins[] = {
+ GPIO_LID_OPEN,
+ GPIO_AC_PRESENT,
+ GPIO_POWER_BUTTON_L,
+};
+const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
+
+
void sbu_fault_interrupt(enum ioex_signal signal)
{
/* TODO */
diff --git a/baseboard/guybrush/baseboard.h b/baseboard/guybrush/baseboard.h
index 2f654d55ed..28bb51973f 100644
--- a/baseboard/guybrush/baseboard.h
+++ b/baseboard/guybrush/baseboard.h
@@ -18,8 +18,6 @@
/* Config options automatically enabled, re-enable once support added */
#undef CONFIG_ADC
#undef CONFIG_SWITCH
-#undef CONFIG_SPI_FLASH
-#undef CONFIG_SUPPORT_CHIP_HIBERNATION
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
@@ -30,6 +28,9 @@
#define CONFIG_EXTPOWER_GPIO
#define CONFIG_VOLUME_BUTTONS
+/* See config_chip-npcx9.h for SPI flash configuration */
+#undef CONFIG_SPI_FLASH /* Don't enable external flash interface */
+
/*
* Macros for GPIO signals used in common code that don't match the
* schematic names. Signal names in gpio.inc match the schematic and are