rambi: fix trackpad and touchscreen wake sources
The GPIOs were not being put into SCI mode to enable
their respective interrupt lines as wake sources. Also
the bit index into the GPE block was incorrect. Fix
both of these issues.
BUG=chrome-os-partner:25251
BRANCH=baytrail
TEST=Noted the appropriate bit was enabled for wake.
Also was able to wake with the track pad.
Change-Id: Ia1b6e4c8cb4b012d76ad27a2158e28d183581025
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/183598
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
78775098a8
commit
3022c82b02
3 changed files with 5 additions and 4 deletions
|
|
@ -164,8 +164,8 @@ static const struct soc_gpio_map gpscore_gpio_map[] = {
|
|||
/* SSUS GPIOs */
|
||||
static const struct soc_gpio_map gpssus_gpio_map[] = {
|
||||
GPIO_ACPI_SCI, /* S500 - PCH_WAKE# */
|
||||
GPIO_FUNC6, /* S501 - TRACKPAD_INT# - INT */
|
||||
GPIO_FUNC6, /* S502 - TOUCH_INT# - INT */
|
||||
GPIO_ACPI_SCI, /* S501 - TRACKPAD_INT# - INT */
|
||||
GPIO_ACPI_SCI, /* S502 - TOUCH_INT# - INT */
|
||||
GPIO_FUNC6, /* S503 - LTE_WAKE_L# - INT */
|
||||
GPIO_NC, /* S504 - SOC_JTAG2_TDO (NC/PU) */
|
||||
GPIO_FUNC1, /* S505 - SUS_CLK_WLAN (NC) */
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <soc/intel/baytrail/baytrail/irq.h>
|
||||
#include <soc/intel/baytrail/baytrail/pci_devs.h>
|
||||
#include <soc/intel/baytrail/baytrail/pmc.h>
|
||||
|
||||
#define PCI_DEV_PIRQ_ROUTES \
|
||||
PCI_DEV_PIRQ_ROUTE(GFX_DEV, A, B, C, D), \
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@
|
|||
|
||||
#define BOARD_TRACKPAD_NAME "trackpad"
|
||||
#define BOARD_TRACKPAD_IRQ GPIO_S0_DED_IRQ(TPAD_IRQ_OFFSET)
|
||||
#define BOARD_TRACKPAD_WAKE_GPIO 1 /* GPSSUS1 */
|
||||
#define BOARD_TRACKPAD_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(1)
|
||||
#define BOARD_TRACKPAD_I2C_BUS 0
|
||||
#define BOARD_TRACKPAD_I2C_ADDR 0x4b
|
||||
|
||||
#define BOARD_TOUCHSCREEN_NAME "touchscreen"
|
||||
#define BOARD_TOUCHSCREEN_IRQ GPIO_S0_DED_IRQ(TOUCH_IRQ_OFFSET)
|
||||
#define BOARD_TOUCHSCREEN_WAKE_GPIO 2 /* GPSSUS2 */
|
||||
#define BOARD_TOUCHSCREEN_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(2)
|
||||
#define BOARD_TOUCHSCREEN_I2C_BUS 5
|
||||
#define BOARD_TOUCHSCREEN_I2C_ADDR 0x4a /* TODO(shawnn): Check this */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue