summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@google.com>2020-04-14 23:31:51 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-29 22:10:41 +0000
commit5a60b3b215125e8d2c145e17867fcfaaae682dcd (patch)
treefc720d5911d6c67ba177cf842cdcb3dbc2c5e4d9 /board
parent57e170c71339961ea0d411e3ffa7c6d8e50c8ea3 (diff)
downloadchrome-ec-5a60b3b215125e8d2c145e17867fcfaaae682dcd.tar.gz
apply INT_AP_L extension on I2CS interface
This patch applies INT_AP_L extension on I2CS. It uses GPIO_MONITOR_I2CS_SDA to detect a transaction start during INT_AP_L assertion and to deassert INT_AP_L. BUG=b:148691139 TEST=None Signed-off-by: Namyoon Woo <namyoon@google.com> Change-Id: Iedd59b488dfdfaaf71dd71eda6437f1a9402d3c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2150517 Tested-by: Namyoon Woo <namyoon@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/cr50/gpio.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/board/cr50/gpio.inc b/board/cr50/gpio.inc
index 47c35fb2d2..e527f7815b 100644
--- a/board/cr50/gpio.inc
+++ b/board/cr50/gpio.inc
@@ -110,6 +110,15 @@ GPIO_INT(DETECT_TPM_RST_L_ASSERTED, PIN(1, 4), GPIO_INT_FALLING,
tpm_rst_asserted)
/*
+ * A GPIO to sample the current state of the I2CS SDA line, allowing to detect
+ * the 'wedged I2C bus' condition.
+ *
+ * Also, it works to detect an I2C transaction during extended INT_AP_L
+ * assertion.
+ */
+GPIO_INT(MONITOR_I2CS_SDA, PIN(1, 6), GPIO_INT_LOW, i2cs_sda_isr)
+
+/*
* These GPIOs are to enable or disable EC-CR50 communication.
* NOTE: If these are changed, you must update the information in board.c
* and ec_comm.c
@@ -188,12 +197,6 @@ GPIO(STRAP_B1, PIN(1, 15), GPIO_INPUT)
GPIO(UNWEDGE_I2CS_SCL, PIN(1, 5), GPIO_OUT_HIGH)
/*
- * A GPIO to sample the current state of the I2CS SDA line, allowing to detect
- * the 'wedged I2C bus' condition.
- */
-GPIO(MONITOR_I2CS_SDA, PIN(1, 6), GPIO_INPUT)
-
-/*
* If you change the names of EN_PP3300_INA_L, I2C_SCL_INA, or I2C_SDA_INA,
* you also need to update the usage in closed_source_set1.c
*/