summaryrefslogtreecommitdiff
path: root/board/samus
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-06-17 15:23:25 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-23 20:41:03 +0000
commit43db8410667de672369c794fd9b16e40fcded85c (patch)
treedc8092f50fe082fc61c1985884680df377e1341e /board/samus
parent0c46bcc3e77c3e7049e1354e0a4802d6bba8c9e2 (diff)
downloadchrome-ec-43db8410667de672369c794fd9b16e40fcded85c.tar.gz
pd: allow pdcmd task to check TCPC alert status w/o sending HC
Modify PDCMD task to allow for TCPCs that do not support host commands. CONFIG_HOSTCMD_PD is a new config option to be used by TCPCs that implement our host command protocol such as the PD MCU on glados and oak. Otherwise, the PDCMD task will not send host commands and will be used simply to check TCPC interrupt status. BUG=none BRANCH=none TEST=test on glados and samus and make sure we can send host commands from the EC to the PD and that we can negotiate a PD contract. Change-Id: I618badb5db3f9e490ae4eedfdb2a0c54513496ff Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/278215 Reviewed-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/samus')
-rw-r--r--board/samus/board.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/samus/board.h b/board/samus/board.h
index 2f8576a1d2..f1eb461c27 100644
--- a/board/samus/board.h
+++ b/board/samus/board.h
@@ -61,6 +61,8 @@
#define CONFIG_HIBERNATE_DELAY_SEC (3600 * 24 * 7)
#define CONFIG_HIBERNATE_BATT_PCT 10
#define CONFIG_HIBERNATE_BATT_SEC (3600 * 24)
+#define CONFIG_HOSTCMD_PD
+#define CONFIG_HOSTCMD_PD_CHG_CTRL
#define CONFIG_HOSTCMD_PD_PANIC
#define CONFIG_PECI_TJMAX 105
#define CONFIG_PWM
@@ -69,7 +71,6 @@
#define CONFIG_TEMP_SENSOR_TMP006
#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_PP3300_DSW_GATED_EN
#define CONFIG_UART_HOST 2
-#define CONFIG_USB_PD_MCU_CHG_CTRL
#define CONFIG_USB_PORT_POWER_SMART
#define CONFIG_USB_PORT_POWER_SMART_DEFAULT_MODE USB_CHARGE_MODE_CDP
#define CONFIG_USB_PORT_POWER_SMART_INVERTED