git: gpio_intel: Support integrated GPIO controllers of the Cherry Trail SoC.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Tue Mar 29 13:53:50 PDT 2016


commit bca7db713219313751fd337c14d5fa96249e05db
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Mar 27 16:09:35 2016 +0200

    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.

Summary of changes:
 share/man/man4/Makefile               |   2 +
 share/man/man4/gpio_acpi.4            |  62 ++++
 share/man/man4/gpio_intel.4           |  63 ++++
 sys/bus/Makefile                      |   2 +-
 sys/bus/gpio/Makefile                 |   3 +
 sys/bus/gpio/gpio_acpi/Makefile       |   8 +
 sys/bus/gpio/gpio_acpi/gpio_acpi.c    | 405 +++++++++++++++++++++++
 sys/bus/gpio/gpio_acpi/gpio_acpivar.h |  41 +++
 sys/bus/gpio/gpio_if.m                |  83 +++++
 sys/bus/gpio/gpio_intel/Makefile      |   8 +
 sys/bus/gpio/gpio_intel/gpio_intel.c  | 596 ++++++++++++++++++++++++++++++++++
 sys/conf/files                        |   7 +
 sys/conf/kmod.mk                      |   3 +-
 sys/config/LINT64                     |   6 +
 14 files changed, 1287 insertions(+), 2 deletions(-)
 create mode 100644 share/man/man4/gpio_acpi.4
 create mode 100644 share/man/man4/gpio_intel.4
 create mode 100644 sys/bus/gpio/Makefile
 create mode 100644 sys/bus/gpio/gpio_acpi/Makefile
 create mode 100644 sys/bus/gpio/gpio_acpi/gpio_acpi.c
 create mode 100644 sys/bus/gpio/gpio_acpi/gpio_acpivar.h
 create mode 100644 sys/bus/gpio/gpio_if.m
 create mode 100644 sys/bus/gpio/gpio_intel/Makefile
 create mode 100644 sys/bus/gpio/gpio_intel/gpio_intel.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bca7db713219313751fd337c14d5fa96249e05db


-- 
DragonFly BSD source repository


More information about the Commits mailing list