coreboot-kgpe-d16/src
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
..
acpi
arch acpi_device: Add support for writing ACPI Device Properties 2016-05-28 03:48:55 +02:00
commonlib cbfstool/fsp: Rename fsp1_1_relocate 2016-05-11 18:38:28 +02:00
console console/post: be explicit about conditional cmos_post_log() compiling 2016-05-25 18:04:11 +02:00
cpu AGESA vendorcode: Build a common amdlib 2016-05-18 10:44:43 +02:00
device device: Add an ACPI device name and path concept to devices 2016-05-21 05:59:52 +02:00
drivers Fix leaking CONFIG_VGA=y 2016-05-31 17:18:59 +02:00
ec ec/google/chromeec/acpi: Add MKBP support 2016-05-18 20:22:38 +02:00
include acpi_device: Add support for writing ACPI I2C descriptors 2016-05-28 03:47:09 +02:00
lib program.ld: Don't exclude sbe region from verstage 2016-05-21 06:04:32 +02:00
mainboard mainboard/asus/[kgpe-d16|kcma-d8]: Enable secondary serial port header 2016-05-31 08:42:23 +02:00
northbridge Fix leaking CONFIG_VGA=y 2016-05-31 17:18:59 +02:00
soc skylake: Add SD card device to configure card detect GPIO 2016-05-31 18:46:39 +02:00
southbridge AMD/spi: Do not reset fifo after skipping the sent bytes 2016-05-30 06:09:21 +02:00
superio sio/winbond/w83667hg-a: Add pinmux defines for UART B 2016-05-29 19:34:54 +02:00
vendorcode vendorcode/google/chromeos/vboot2: use cbmem for postcar region selection 2016-05-25 18:04:30 +02:00
Kconfig src/Kconfig: Move acpi Kconfig below chipset Kconfigs 2016-05-19 19:29:59 +02:00