diff options
author | Edward Hill <ecgh@chromium.org> | 2019-02-04 14:33:27 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-12 18:22:05 -0800 |
commit | 1f883987e9d71223058d7cb8771607977f3688d5 (patch) | |
tree | 8ae7839654386cdcb88204332c40a16cfc81c990 | |
parent | be87c9f8beb86dd224226ccf9620ee0679c5024b (diff) | |
download | chrome-ec-1f883987e9d71223058d7cb8771607977f3688d5.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>
-rw-r--r-- | baseboard/grunt/baseboard.h | 1 | ||||
-rw-r--r-- | board/aleena/gpio.inc | 2 | ||||
-rw-r--r-- | board/careena/board.h | 2 | ||||
-rw-r--r-- | board/delan/board.h | 2 | ||||
-rw-r--r-- | board/grunt/board.h | 2 | ||||
-rw-r--r-- | board/liara/board.h | 2 |
6 files changed, 9 insertions, 2 deletions
diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index 10af2e8633..8dc4a98c01 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -171,7 +171,6 @@ /* Sensors */ #define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_HOST_EVENT #define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT /* Thermal */ 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 c4a27ad4d9..d66f212340 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 |