summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2019-02-04 14:33:27 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2019-02-13 16:04:19 +0000
commit951d3ccdbb2515879b9188253ad0cef655672ab2 (patch)
tree1d13e0f173ff9f036f2b8611a85b43fa54c6b52b /board
parent883f059ae89731b80e9ed75ae60817002ba33b29 (diff)
downloadchrome-ec-951d3ccdbb2515879b9188253ad0cef655672ab2.tar.gz
aleena: Enable GPIO-based MKBP event notification
Send MKBP events (for sensor data) over GPIO instead of host event. BUG=b:123750725 BRANCH=grunt TEST=MKBP events still received Change-Id: Ie1b02bbb8df44ade5ec6f1a4ba5dc4c5142e9f39 Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1452936 Reviewed-by: Enrico Granata <egranata@chromium.org> Reviewed-by: Raul E Rangel <rrangel@chromium.org> (cherry picked from commit 1f883987e9d71223058d7cb8771607977f3688d5) Reviewed-on: https://chromium-review.googlesource.com/c/1470770
Diffstat (limited to 'board')
-rw-r--r--board/aleena/gpio.inc2
-rw-r--r--board/careena/board.h2
-rw-r--r--board/delan/board.h2
-rw-r--r--board/grunt/board.h2
-rw-r--r--board/liara/board.h2
5 files changed, 9 insertions, 1 deletions
diff --git a/board/aleena/gpio.inc b/board/aleena/gpio.inc
index 1256ecb6cb..87f6da31a0 100644
--- a/board/aleena/gpio.inc
+++ b/board/aleena/gpio.inc
@@ -40,6 +40,7 @@ GPIO(CPU_PROCHOT, PIN(3, 4), GPIO_INPUT | GPIO_SEL_1P8V) /* PROCHOT to SOC */
GPIO(APU_ALERT_L, PIN(A, 2), GPIO_INPUT) /* Alert to SOC */
GPIO(3AXIS_INT_L, PIN(5, 0), GPIO_INPUT | GPIO_SEL_1P8V) /* 3 Axis Accel */
GPIO(KB_BL_EN, PIN(F, 2), GPIO_OUT_LOW) /* Enable KB Backlight */
+GPIO(EC_INT_L, PIN(A, 4), GPIO_ODR_HIGH) /* Sensor MKBP event to SOC */
/* I2C pins - these will be reconfigured for alternate function below */
GPIO(I2C0_SCL, PIN(B, 5), GPIO_INPUT) /* EC_I2C_POWER_SCL */
@@ -62,7 +63,6 @@ GPIO(I2C7_SDA, PIN(B, 2), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_I2C_SENSOR_SDA */
* so PCH_SCI_ODL [PIN(7, 6)] and PCH_SMI_ODL [PIN(C, 6)] are
* not defined here as GPIOs.
*/
-GPIO(PCH_SLP_S0_L, PIN(A, 4), GPIO_INPUT)
GPIO(EN_USB_A0_5V, PIN(6, 1), GPIO_OUT_LOW) /* Enable A0 5V Charging */
GPIO(EN_USB_A1_5V, PIN(C, 0), GPIO_OUT_LOW) /* Enable A1 5V Charging */
diff --git a/board/careena/board.h b/board/careena/board.h
index 2cee3a751a..b0e5c0467f 100644
--- a/board/careena/board.h
+++ b/board/careena/board.h
@@ -18,6 +18,8 @@
#undef CONFIG_HOSTCMD_DEBUG_MODE
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
+#define CONFIG_MKBP_USE_HOST_EVENT
+
#define CONFIG_LED_COMMON
#define CONFIG_CMD_LEDTEST
#define CONFIG_KEYBOARD_FACTORY_TEST
diff --git a/board/delan/board.h b/board/delan/board.h
index 29b4134c64..8ed14a8d91 100644
--- a/board/delan/board.h
+++ b/board/delan/board.h
@@ -18,6 +18,8 @@
#undef CONFIG_HOSTCMD_DEBUG_MODE
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
+#define CONFIG_MKBP_USE_HOST_EVENT
+
/* Power and battery LEDs */
#define CONFIG_LED_COMMON
#define CONFIG_CMD_LEDTEST
diff --git a/board/grunt/board.h b/board/grunt/board.h
index 08ce881a12..bd13cb4c68 100644
--- a/board/grunt/board.h
+++ b/board/grunt/board.h
@@ -18,6 +18,8 @@
#undef CONFIG_HOSTCMD_DEBUG_MODE
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
+#define CONFIG_MKBP_USE_HOST_EVENT
+
/* Work around Grunt KSI03 HW bug and rework (b/79758966) */
#define CONFIG_KEYBOARD_REFRESH_ROW3
#define CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI3
diff --git a/board/liara/board.h b/board/liara/board.h
index f1829c5e58..0e2fe91df3 100644
--- a/board/liara/board.h
+++ b/board/liara/board.h
@@ -18,6 +18,8 @@
#undef CONFIG_HOSTCMD_DEBUG_MODE
#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
+#define CONFIG_MKBP_USE_HOST_EVENT
+
/* Power and battery LEDs */
#define CONFIG_LED_COMMON
#define CONFIG_LED_PWM_CHARGE_STATE_ONLY