summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-25 07:13:35 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-05-26 00:21:41 -0700
commit5c5eba404c9ec8c1d728f5f6691a110aea1efbb0 (patch)
tree48a97876eee67e33e30f76bb6b63c55a43ea7381
parentd7705eb311f919ab4c93aeea401ba58771c28dd4 (diff)
downloadchrome-ec-5c5eba404c9ec8c1d728f5f6691a110aea1efbb0.tar.gz
cheza: Add stubs and ifdefs to fix tests
BRANCH=none BUG=none TEST=make BOARD=cheza tests -j Change-Id: Ifec4653bf71b870b616669f0a32ba528c1e38787 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1072217 Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/cheza/board.c2
-rw-r--r--include/chipset.h2
-rw-r--r--include/config.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/board/cheza/board.c b/board/cheza/board.c
index a7933cff45..d0a1d29986 100644
--- a/board/cheza/board.c
+++ b/board/cheza/board.c
@@ -54,8 +54,10 @@ static void anx74xx_cable_det_interrupt(enum gpio_signal signal);
/* GPIO Interrupt Handlers */
static void tcpc_alert_event(enum gpio_signal signal)
{
+#ifdef HAS_TASK_PDCMD
/* Exchange status with TCPCs */
host_command_pd_send_status(PD_CHARGE_NO_CHANGE);
+#endif
}
static void vbus0_handler(void)
diff --git a/include/chipset.h b/include/chipset.h
index 66398ea059..5169689d8a 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -107,6 +107,8 @@ static inline void chipset_reset(void) { }
static inline void power_interrupt(enum gpio_signal signal) { }
static inline void chipset_handle_espi_reset_assert(void) { }
static inline void chipset_handle_reboot(void) { }
+static inline void chipset_reset_request_interrupt(enum gpio_signal signal) { }
+static inline void chipset_power_signal_interrupt(enum gpio_signal signal) { }
#endif /* !HAS_TASK_CHIPSET */
diff --git a/include/config.h b/include/config.h
index 0351169a79..a7cdc1b3f6 100644
--- a/include/config.h
+++ b/include/config.h
@@ -3607,6 +3607,7 @@
#undef CONFIG_CHIPSET_MEDIATEK
#undef CONFIG_CHIPSET_RK3399
#undef CONFIG_CHIPSET_ROCKCHIP
+#undef CONFIG_CHIPSET_SDM845
#undef CONFIG_CHIPSET_SKYLAKE
#undef CONFIG_CHIPSET_STONEY
#undef CONFIG_POWER_COMMON