coreboot-kgpe-d16/src/soc/intel
Duncan Laurie b25a45ca46 skylake: Add SD card device to configure card detect GPIO
Add a PCI driver for the skylake SD card device and have it generate
an entry in the SSDT for the card detect GPIO if it is provided by the
mainboard in devicetree.

This sets up a card detect GPIO configuration that will trigger an
interrupt on both edges with a 100ms debounce timeout and can wake the
SD controller from D3 state.

The GpioInt() entry is bound to the "cd-gpio" device property which will
be consumed by the kernel driver.

The resulting ACPI output in the SSDT will be combined with the SDXC
device declaration in the DSDT.

Example:

Scope (\_SB.PCI0.SDXC)
{
  Name (_CRS, ResourceTemplate () {
    GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 10000,
             "\\_SB.PCI0.GPIO", 0, ResourceConsumer) { 35 }
  })
  Name (_DSD, Package () {
    ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
    Package () {
      Package () { "cd-gpio", Package () { \_SB.PCI0.SDXC, 0, 0, 1 } }
    }
  })
}

Change-Id: Ie4c1bfadd962cf55a987edb9ef86e92174205770
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/14995
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-05-31 18:46:39 +02:00
..
apollolake soc/intel/apollolake: provide SMM dependency requirements 2016-05-27 19:56:01 +02:00
baytrail soc/intel: indicate to build system that XIP_ROM_SIZE isn't used 2016-05-06 16:50:00 +02:00
braswell soc/intel: indicate to build system that XIP_ROM_SIZE isn't used 2016-05-06 16:50:00 +02:00
broadwell {cpu,soc}/intel: remove unused smm_init() function 2016-05-06 16:48:21 +02:00
common soc/intel/common: Add common smihandler code 2016-05-25 19:09:00 +02:00
fsp_baytrail {cpu,soc}/intel: remove unused smm_init() function 2016-05-06 16:48:21 +02:00
fsp_broadwell_de soc/intel/fsp_broadwell_de: convert to using common MP init 2016-05-06 16:41:01 +02:00
quark soc/intel/quark: Add USB device port support 2016-05-25 00:17:34 +02:00
sch intel/sch: Merge northbridge and southbridge in src/soc 2016-05-17 21:38:17 +02:00
skylake skylake: Add SD card device to configure card detect GPIO 2016-05-31 18:46:39 +02:00