mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: google/reef: Use exported GPIOs and ACPI regulator for touchscreen
ELAN touchscreen device expects firmware to export GPIOs and ACPI regulators for managing power to the device. Thus, provide the required ACPI elements for OS driver to properly manage this device. BUG=chrome-os-partner:60194 BRANCH=None TEST=Verified that touchscreen works properly on boot-up and after suspend/resume. Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17799 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: I298ca5de9c0ae302309d87e3dffb65f9be1e882e Reviewed-on: https://chromium-review.googlesource.com/422232 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
a88b35bf54
commit
f0987b647d
2 changed files with 11 additions and 1 deletions
|
@ -50,6 +50,9 @@ config DRIVERS_I2C_WACOM
|
|||
config DRIVERS_PS2_KEYBOARD
|
||||
default y
|
||||
|
||||
config DRIVERS_GENERIC_GPIO_REGULATOR
|
||||
default y
|
||||
|
||||
config MAINBOARD_DIR
|
||||
string
|
||||
default google/reef
|
||||
|
|
|
@ -179,7 +179,14 @@ chip soc/intel/apollolake
|
|||
register "probed" = "1"
|
||||
register "pwr_mgmt_type" = "GPIO_EXPORT"
|
||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_36)"
|
||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)"
|
||||
|
||||
chip drivers/generic/gpio_regulator
|
||||
register "name" = ""vcc33""
|
||||
register "gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)"
|
||||
register "enabled_on_boot" = "1"
|
||||
device generic 0 on end
|
||||
end
|
||||
|
||||
device i2c 10 on end
|
||||
end
|
||||
end # - I2C 3
|
||||
|
|
Loading…
Add table
Reference in a new issue