summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorDtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>2020-04-07 10:21:59 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-04-14 10:07:50 +0000
commit3fe5f2cfa4a091b237562851796d1415451d462f (patch)
tree03d625fd87ca2868d5f505234612eb31337429f6 /src/mainboard/google
parent53e82f67eabbc64f8344e97a066fbc7c619b5dd6 (diff)
downloadcoreboot-3fe5f2cfa4a091b237562851796d1415451d462f.tar.xz
mb/google/dedede: Enable SIS touchscreen for Waddledoo
Add SiS9813 USI touchscreen support. BUG=b:152936541 TEST="emerge-dedede coreboot chromeos-bootimage", build successful. Signed-off-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com> Change-Id: Id04c46c763fdf68418bf2e97be4c8bb6bb73c749 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40250 Reviewed-by: Marco Chen <marcochen@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/dedede/variants/baseboard/gpio.c8
-rw-r--r--src/mainboard/google/dedede/variants/waddledoo/overridetree.cb19
2 files changed, 23 insertions, 4 deletions
diff --git a/src/mainboard/google/dedede/variants/baseboard/gpio.c b/src/mainboard/google/dedede/variants/baseboard/gpio.c
index 89683bd754..d12d2c464d 100644
--- a/src/mainboard/google/dedede/variants/baseboard/gpio.c
+++ b/src/mainboard/google/dedede/variants/baseboard/gpio.c
@@ -29,7 +29,7 @@ static const struct pad_config gpio_table[] = {
/* A10 : WWAN_EN */
PAD_NC(GPP_A10, NONE),
/* A11 : TOUCH_RPT_EN */
- PAD_NC(GPP_A11, NONE),
+ PAD_CFG_GPO(GPP_A11, 0, DEEP),
/* A12 : USB_OC1_N */
PAD_NC(GPP_A12, NONE),
/* A13 : USB_OC2_N */
@@ -154,11 +154,11 @@ static const struct pad_config gpio_table[] = {
/* D3 : WLAN_PCIE_WAKE_ODL */
PAD_CFG_GPI_SCI_LOW(GPP_D3, NONE, DEEP, EDGE_SINGLE),
/* D4 : TOUCH_INT_ODL */
- PAD_NC(GPP_D4, NONE),
+ PAD_CFG_GPI_APIC(GPP_D4, NONE, PLTRST, LEVEL, INVERT),
/* D5 : TOUCH_RESET_L */
- PAD_NC(GPP_D5, NONE),
+ PAD_CFG_GPO(GPP_D5, 0, DEEP),
/* D6 : EN_PP3300_TOUCH_S0 */
- PAD_NC(GPP_D6, NONE),
+ PAD_CFG_GPO(GPP_D6, 0, DEEP),
/* D7 : EMR_INT_ODL */
PAD_NC(GPP_D7, NONE),
/* D8 : GPP_D8/GSPI2_CS0B/UART0A_RXD */
diff --git a/src/mainboard/google/dedede/variants/waddledoo/overridetree.cb b/src/mainboard/google/dedede/variants/waddledoo/overridetree.cb
index cb21c63b0f..cc9e651252 100644
--- a/src/mainboard/google/dedede/variants/waddledoo/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/waddledoo/overridetree.cb
@@ -55,6 +55,25 @@ chip soc/intel/jasperlake
device i2c 15 on end
end
end #I2C 0
+ device pci 15.2 on
+ chip drivers/i2c/hid
+ register "generic.hid" = ""SIS6496""
+ register "generic.desc" = ""SIS Touchscreen""
+ register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D4_IRQ)"
+ register "generic.probed" = "1"
+ register "generic.reset_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
+ register "generic.reset_delay_ms" = "100"
+ register "generic.stop_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
+ register "generic.enable_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
+ register "generic.enable_delay_ms" = "7"
+ register "generic.has_power_resource" = "1"
+ register "hid_desc_reg_offset" = "0x00"
+ device i2c 5c on end
+ end
+ end # I2C 2
device pci 1c.7 on
chip drivers/intel/wifi
register "wake" = "GPE0_DW2_03"