acpigen: Add stop gpio control to power resource

Hardware / Coreboot - Furquan Shaikh [chromium.org] - 30 August 2017 12:40 EDT

There is at least one I2C device (being used by Soraka) that has 3 controls -- enable, reset and stop. If the stop gpio is not put into the right state when turning off the device in suspend mode, then it causes leakage. Thus, we need control in power resource to be able to stop the device when entering suspend state.

BUG=b:64987428 TEST=Verified on soraka that touchscreen stop is correctly configured on suspend.

Change-Id: Iae5ec7eb3972c5c7f80956d60d0d3c321bbefb0f

edf459f acpigen: Add stop gpio control to power resource
src/arch/x86/acpi_device.c | 13 +++++++++++--
src/arch/x86/include/arch/acpi_device.h | 9 +++++++--
src/drivers/i2c/generic/chip.h | 4 ++++
src/drivers/i2c/generic/generic.c | 3 ++-
src/drivers/spi/acpi/acpi.c | 3 ++-
src/drivers/spi/acpi/chip.h | 5 +++++
6 files changed, 31 insertions(+), 6 deletions(-)

Upstream: review.coreboot.org


  • Share