summaryrefslogtreecommitdiff
path: root/board/phaser
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-01-09 08:00:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-01-10 13:58:43 -0800
commit62adbc1bd61124f04405b9ee94b7172171546239 (patch)
tree29216a9f46e55802d7214942ae0882460b6ba0ac /board/phaser
parent1f1e33a579ba26e4edd258bd93c5366bd8bc52eb (diff)
downloadchrome-ec-62adbc1bd61124f04405b9ee94b7172171546239.tar.gz
octopus: convert boards to use hardware int
Recent kernel changes expect the EC to use a dedicated interrupt pin from the EC to the AP to notify the AP of pending sensor data (instead of using an eSPI "interrupt"). The octopus boards have this hardware support, we just need to enable the EC use it. BRANCH=octopus BUG=b:122552125,b:120679547 TEST=perform sensor tests on various octopus boards Change-Id: I2bd3ffe14947d5f1ec71acbb53fcac962b007cf9 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1403103 Reviewed-by: Enrico Granata <egranata@chromium.org>
Diffstat (limited to 'board/phaser')
-rw-r--r--board/phaser/board.h3
-rw-r--r--board/phaser/gpio.inc4
2 files changed, 3 insertions, 4 deletions
diff --git a/board/phaser/board.h b/board/phaser/board.h
index 0b5d262d49..91d3d793ad 100644
--- a/board/phaser/board.h
+++ b/board/phaser/board.h
@@ -40,9 +40,6 @@
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
#define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT
-#define CONFIG_MKBP_EVENT
-#define CONFIG_MKBP_USE_HOST_EVENT
-
#define CONFIG_ACCEL_LSM6DSM_INT_EVENT TASK_EVENT_CUSTOM(4)
#ifndef __ASSEMBLER__
diff --git a/board/phaser/gpio.inc b/board/phaser/gpio.inc
index 11c1bfde0b..3579ecb38a 100644
--- a/board/phaser/gpio.inc
+++ b/board/phaser/gpio.inc
@@ -147,7 +147,9 @@ GPIO(GPOB6_NC, PIN(B, 6), GPIO_INPUT | GPIO_PULL_UP)
/* Camera */
GPIO(EC_GPIO_03, PIN(0, 3), GPIO_INPUT) /* TP only */
-GPIO(EC_INT_L, PIN(9, 4), GPIO_INPUT) /* EC_AP_INT_ODL - Unused GPIO_ODR_HIGH */
+
+/* MKBP event synchronization */
+GPIO(EC_INT_L, PIN(9, 4), GPIO_ODR_HIGH) /* EC_AP_INT_ODL */
/* Misc. */
GPIO(CCD_MODE_EC_L, PIN(E, 3), GPIO_INPUT)