coreboot/src
Furquan Shaikh 0804758ce9 UPSTREAM: drivers/i2c/generic: Allow mainboards to export reset and enable GPIOs
Add power management type config option that allows mainboards to
either:
1. Define a power resource that uses the reset and enable gpios to
power on and off the device using _ON and _OFF methods, or
2. Export reset and enable GPIOs in _CRS and _DSD so that the OS can
directly toggle the GPIOs as required.

GPIO type needs to be updated in drivers_i2c_generic_config to use
acpi_gpio type so that it can be used for both the above cases.

BUG=chrome-os-partner:60194
BRANCH=None
TEST=Verified that elan touchscreen works fine on reef using exported
GPIOs.

Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17797
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>

Change-Id: I4d76f193f615cfc4520869dedc55505c109042f6
Reviewed-on: https://chromium-review.googlesource.com/422214
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-19 09:54:25 -08:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: acpi_device: Add special HID for DT namespace 2016-12-19 09:54:22 -08:00
commonlib UPSTREAM: buildsystem: Drop explicit (k)config.h includes 2016-12-09 03:29:54 -08:00
console UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length 2016-11-29 17:38:21 -08:00
cpu UPSTREAM: ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-13 17:49:16 -08:00
device UPSTREAM: buildsystem: Drop explicit (k)config.h includes 2016-12-09 03:29:54 -08:00
drivers UPSTREAM: drivers/i2c/generic: Allow mainboards to export reset and enable GPIOs 2016-12-19 09:54:25 -08:00
ec UPSTREAM: ec/ene932: correct ACPI battery data fed into ToString() 2016-12-16 07:51:42 -08:00
include UPSTREAM: smbios.h: add missing SKU field to type3 table 2016-12-16 07:51:45 -08:00
lib UPSTREAM: lib/spd_bin: Check return code & remove dead code 2016-12-16 04:51:02 -08:00
mainboard UPSTREAM: drivers/i2c/generic: Allow mainboards to export reset and enable GPIOs 2016-12-19 09:54:25 -08:00
northbridge UPSTREAM: nb/intel/gm45: Use lapic udelay in SMM 2016-12-13 17:49:50 -08:00
soc rockchip/common: Loosen I2C frequency target requirements 2016-12-17 02:01:09 -08:00
southbridge UPSTREAM: intel/i945: Use romstage_handoff for S3 2016-12-13 17:49:07 -08:00
superio UPSTREAM: sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-16 04:50:43 -08:00
vboot UPSTREAM: lib/cbmem: allow anyone to use cbmem_possibly_online() 2016-12-16 07:51:33 -08:00
vendorcode UPSTREAM: vendorcode/amd: drop dead code 2016-12-16 04:50:55 -08:00
Kconfig UPSTREAM: ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-13 17:49:16 -08:00