mb/google/dedede: add PEN for Boten
Update devicetree of boten that enable stylus BUG=b:160752604 BRANCH=NONE TEST=build bios and verify function for boten Signed-off-by: alec.wang <alec.wang@lcfc.corp-partner.google.com> Change-Id: Ifbcac18fcf758f3d870a6af0d1b03e34369414c0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45807 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marco Chen <marcochen@google.com> Reviewed-by: Jamie Chen <jamie.chen@intel.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
dbe8415245
commit
3704b6d4ab
|
@ -3,6 +3,7 @@ config BOARD_GOOGLE_BASEBOARD_DEDEDE
|
|||
select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
|
||||
select CR50_USE_LONG_INTERRUPT_PULSES
|
||||
select DPTF_USE_EISA_HID
|
||||
select DRIVERS_GENERIC_GPIO_KEYS
|
||||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_GPIO_MUX
|
||||
select DRIVERS_I2C_HID
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
/* Pad configuration in ramstage*/
|
||||
static const struct pad_config gpio_table[] = {
|
||||
/* C12 : AP_PEN_DET_ODL */
|
||||
PAD_CFG_GPI_SCI(GPP_C12, NONE, DEEP, EDGE_SINGLE, NONE),
|
||||
/* C18 : AP_I2C_EMR_SDA */
|
||||
PAD_NC(GPP_C18, NONE),
|
||||
/* C19 : AP_I2C_EMR_SCL */
|
||||
|
|
|
@ -10,7 +10,7 @@ chip soc/intel/jasperlake
|
|||
#| | before memory is up |
|
||||
#| I2C0 | Trackpad |
|
||||
#| I2C1 | Digitizer |
|
||||
#| I2C2 | Touchscreen |
|
||||
#| I2C2 | Touchscreen, Stylus |
|
||||
#| I2C4 | Audio |
|
||||
#+-------------------+---------------------------+
|
||||
register "common_soc_config" = "{
|
||||
|
@ -107,6 +107,18 @@ chip soc/intel/jasperlake
|
|||
end
|
||||
end # I2C 0
|
||||
device pci 15.2 on
|
||||
chip drivers/generic/gpio_keys
|
||||
register "name" = ""PENH""
|
||||
register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_C12)"
|
||||
register "key.wake_gpe" = "GPE0_DW1_12"
|
||||
register "key.wakeup_route" = "WAKEUP_ROUTE_SCI"
|
||||
register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
|
||||
register "key.dev_name" = ""EJCT""
|
||||
register "key.linux_code" = "SW_PEN_INSERTED"
|
||||
register "key.linux_input_type" = "EV_SW"
|
||||
register "key.label" = ""pen_eject""
|
||||
device generic 0 on end
|
||||
end
|
||||
chip drivers/i2c/hid
|
||||
register "generic.hid" = ""GDIX0000""
|
||||
register "generic.desc" = ""Goodix Touchscreen""
|
||||
|
|
Loading…
Reference in New Issue