summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/ec.h6
-rw-r--r--src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/gpio.h19
2 files changed, 18 insertions, 7 deletions
diff --git a/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/ec.h b/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/ec.h
index b9b46890f1..c354e8b1b7 100644
--- a/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/ec.h
+++ b/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/ec.h
@@ -75,8 +75,10 @@
/* Enable EC backed PD MCU device in ACPI */
#define EC_ENABLE_PD_MCU_DEVICE
-#define EC_ENABLE_SYNC_IRQ /* Enable tight timestamp / wake support */
-#define EC_SYNC_IRQ_WAKE_CAPABLE /* Let the OS know ec_sync is wake capable */
+#if !CONFIG(BOARD_GOOGLE_FATCAT)
+ #define EC_ENABLE_SYNC_IRQ /* Enable tight timestamp / wake support */
+ #define EC_SYNC_IRQ_WAKE_CAPABLE /* Let the OS know ec_sync is wake capable */
+#endif
#define SIO_EC_ENABLE_PS2K /* Enable PS/2 Keyboard */
#define SIO_EC_HOST_ENABLE /* EC Host Interface Resources */
diff --git a/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/gpio.h b/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/gpio.h
index 5a77e4eb2c..3f94c03044 100644
--- a/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/gpio.h
+++ b/src/mainboard/google/fatcat/variants/baseboard/fatcat/include/baseboard/gpio.h
@@ -6,12 +6,21 @@
#include <soc/gpe.h>
#include <soc/gpio.h>
-/* FIXME: update below code as per board schematics */
/* eSPI virtual wire reporting */
#define EC_SCI_GPI GPE0_ESPI
-/* GPIO IRQ for tight timestamps / wake support */
-#define EC_SYNC_IRQ 0
-/* WP signal to PCH */
-#define GPIO_PCH_WP 0
+/*
+ * EC_SYNC_IRQ - GPIO IRQ for tight timestamps / wake support
+ * GPIO_PCH_WP - WP signal to PCH
+ */
+#if CONFIG(BOARD_GOOGLE_FATCATNUVO) || CONFIG(BOARD_GOOGLE_FATCATITE)
+ #define EC_SYNC_IRQ GPP_E07_IRQ
+ #define GPIO_PCH_WP GPP_D02
+#elif CONFIG(BOARD_GOOGLE_FATCAT)
+ #define EC_SYNC_IRQ 0 /* Not Connected */
+ #define GPIO_PCH_WP GPP_D02
+#elif CONFIG(BOARD_GOOGLE_FRANCKA)
+ #define EC_SYNC_IRQ 0 /* TODO */
+ #define GPIO_PCH_WP 0 /* TODO */
+#endif
#endif /* __BASEBOARD_GPIO_H__ */