gpio_intel: Support integrated GPIO controllers of the Cherry Trail SoC.
authorImre Vadász <imre@vdsz.com>
Sun, 27 Mar 2016 14:09:35 +0000 (16:09 +0200)
committerImre Vadász <imre@vdsz.com>
Tue, 29 Mar 2016 20:34:19 +0000 (22:34 +0200)
commitbca7db713219313751fd337c14d5fa96249e05db
tree8d18a2b91574997c5e2fe233cbfe394f3ddf0e8f
parent9df369791566212027aaff16c1f916f5ef3987c4
gpio_intel: Support integrated GPIO controllers of the Cherry Trail SoC.

* The gpio_acpi module takes care of probing and setting up the ACPI
  GPIO-signaled events and the ACPI address space handler, utilizing the
  gpio interface provided by gpio_intel for the actual GPIO accesses.

* So far gpio_intel can only be used for the ACPI-5.0 GPIO features.

* This makes ACPI gpio events (which replace GPE interrupts on many
  current x86 SoC devices) work, and provides a handler for the
  GeneralPurposeIo Opregions of each GPIO controller.

* With this the HP x2 210 detachable correctly recognizes unplugging
  of the power supply, and opening/closing of the lid.

* Further work is still needed to refactor gpio_intel to make adding
  support for other SoC/CPU versions easier.

* The gpio_if.m interface is still a prototype that only provides a
  minimum of functionality that is needed to get  gpio_acpi working.
14 files changed:
share/man/man4/Makefile
share/man/man4/gpio_acpi.4 [new file with mode: 0644]
share/man/man4/gpio_intel.4 [new file with mode: 0644]
sys/bus/Makefile
sys/bus/gpio/Makefile [new file with mode: 0644]
sys/bus/gpio/gpio_acpi/Makefile [new file with mode: 0644]
sys/bus/gpio/gpio_acpi/gpio_acpi.c [new file with mode: 0644]
sys/bus/gpio/gpio_acpi/gpio_acpivar.h [new file with mode: 0644]
sys/bus/gpio/gpio_if.m [new file with mode: 0644]
sys/bus/gpio/gpio_intel/Makefile [new file with mode: 0644]
sys/bus/gpio/gpio_intel/gpio_intel.c [new file with mode: 0644]
sys/conf/files
sys/conf/kmod.mk
sys/config/LINT64