summaryrefslogtreecommitdiff
path: root/board/eve/gpio.inc
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-02-03 13:28:35 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-06 16:40:57 -0800
commit43298813e963f12173be63886607c3690a4931d9 (patch)
treee3bea1d52a4b18bcdab85d286e60d62f507d88ce /board/eve/gpio.inc
parentedf46467b9519478885375b393fadcdbdd90dde4 (diff)
downloadchrome-ec-43298813e963f12173be63886607c3690a4931d9.tar.gz
eve: Fix sensor data
The lid and base matrix were wrong, chrome would enter tablet mode while in clamshell mode. Sensors are powered in S3 and S5. Enable lid angle to disable keyboard while in tent mode. Disable Trackpad in S5, but just block the interrupt while in tablet mode and not in S0. Allow reporting tablet switch mode to AP via ACPI event. BUG=chrome-os-partner:62385 BRANCH=eve TEST=When device is laying on a table, lid angle at 180, both sensors report gravity along Z axis: ectool motionsense Motion sensing active Sensor 0: 368 -368 16752 Sensor 1: 828 -820 16293 When on the base bottom edge, report gravity along Y axis: ectool motionsense Motion sensing active Sensor 0: 256 16160 -976 Sensor 1: 993 16362 -391 Sensor 2: 0 0 0 Sensor 3: 0 0 0 When on its left side, report gravity along X axis: ectool motionsense Motion sensing active Sensor 0: 15968 368 1920 Sensor 1: 16503 219 2430 Sensor 2: 0 0 0 Sensor 3: 0 0 0 Power down machine. Power back up. Check sensors are still working. Check we can not resume machine while in tent mode from keyboard. Resuming from trackpad does not work yet. Change-Id: I4ee6efc57f217d76e5eb97683efa56ceb211cad8 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/437906 Reviewed-by: Alexandru Stan <amstan@chromium.org>
Diffstat (limited to 'board/eve/gpio.inc')
-rw-r--r--board/eve/gpio.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/eve/gpio.inc b/board/eve/gpio.inc
index 12960f467b..7defffd663 100644
--- a/board/eve/gpio.inc
+++ b/board/eve/gpio.inc
@@ -26,7 +26,7 @@ GPIO_INT(ACCELGYRO3_INT_L, PIN(9, 3), GPIO_INT_FALLING, bmi160_interrupt)
GPIO(PCH_RTCRST, PIN(E, 7), GPIO_OUT_LOW) /* RTCRST# to SOC */
GPIO(ENABLE_BACKLIGHT, PIN(5, 6), GPIO_OUT_LOW) /* Enable Backlight */
-GPIO(ENABLE_TOUCHPAD, PIN(3, 2), GPIO_OUT_LOW) /* Enable Trackpad */
+GPIO(TRACKPAD_SHDN_L, PIN(3, 2), GPIO_OUT_LOW) /* Enable Trackpad */
GPIO(WLAN_OFF_L, PIN(7, 2), GPIO_OUT_LOW) /* Disable WLAN */
GPIO(PP3300_DX_WLAN, PIN(A, 7), GPIO_OUT_LOW) /* Enable WLAN 3.3V Power */
GPIO(CHARGER_RST_ODL, PIN(0, 1), GPIO_ODR_HIGH) /* CHARGER_RST_ODL */
@@ -60,7 +60,7 @@ GPIO(I2C3_SCL, PIN(D, 1), GPIO_INPUT) /* EC_I2C3_POWER_SCL */
GPIO(I2C3_SDA, PIN(D, 0), GPIO_INPUT) /* EC_I2C3_POWER_SDA */
/* AP wake sources when in Deep-S3 state */
-GPIO(TOUCHPAD_WAKE_L, PIN(7, 1), GPIO_INPUT | GPIO_SEL_1P8V) /* INT# from Trackpad */
+GPIO(TRACKPAD_INT_L, PIN(7, 1), GPIO_ODR_LOW) /* INT# from Trackpad */
GPIO(DSP_WAKE_L, PIN(C, 6), GPIO_INPUT | GPIO_SEL_1P8V) /* INT# from DSP Mic */
/* 5V enables: INPUT=1.5A, OUT_LOW=OFF, OUT_HIGH=3A */