summaryrefslogtreecommitdiff
path: root/board
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
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')
-rw-r--r--board/glados/board.h1
-rw-r--r--board/oak/board.h1
-rw-r--r--board/samus/board.h3
3 files changed, 4 insertions, 1 deletions
diff --git a/board/glados/board.h b/board/glados/board.h
index ad1de2b883..5317c19e63 100644
--- a/board/glados/board.h
+++ b/board/glados/board.h
@@ -28,6 +28,7 @@
#define CONFIG_CHIPSET_SKYLAKE
#define CONFIG_CLOCK_CRYSTAL
#define CONFIG_EXTPOWER_GPIO
+#define CONFIG_HOSTCMD_PD
#define CONFIG_I2C
#define CONFIG_KEYBOARD_PROTOCOL_8042
#define CONFIG_LED_COMMON
diff --git a/board/oak/board.h b/board/oak/board.h
index 5cac3c7501..78c7999d1f 100644
--- a/board/oak/board.h
+++ b/board/oak/board.h
@@ -46,6 +46,7 @@
#define CONFIG_HIBERNATE
#define CONFIG_HIBERNATE_WAKEUP_PINS (STM32_PWR_CSR_EWUP1|STM32_PWR_CSR_EWUP6)
#define CONFIG_HOST_COMMAND_STATUS
+#define CONFIG_HOSTCMD_PD
#define CONFIG_I2C
#define CONFIG_KEYBOARD_COL2_INVERTED
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
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