summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/kunimitsu
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/intel/kunimitsu')
-rw-r--r--src/mainboard/intel/kunimitsu/acpi/mainboard.asl19
-rw-r--r--src/mainboard/intel/kunimitsu/gpio.h3
2 files changed, 22 insertions, 0 deletions
diff --git a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
index f44e36274d..4a85e350c3 100644
--- a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
+++ b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
@@ -308,3 +308,22 @@ Scope (\_SB.PCI0.I2C4)
}
}
}
+
+Scope (\_SB.PCI0.SDXC)
+{
+ Name (_CRS, ResourceTemplate () {
+ GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 10000,
+ "\\_SB.PCI0.GPIO", 0, ResourceConsumer)
+ {
+ GPIO_SD_CARD_DETECT
+ }
+ })
+
+ Name (_DSD, Package () {
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package ()
+ {
+ Package () { "cd-gpio", Package () { ^SDXC, 0, 0, 1 } },
+ }
+ })
+}
diff --git a/src/mainboard/intel/kunimitsu/gpio.h b/src/mainboard/intel/kunimitsu/gpio.h
index 2dc8cfc78f..de51fb562e 100644
--- a/src/mainboard/intel/kunimitsu/gpio.h
+++ b/src/mainboard/intel/kunimitsu/gpio.h
@@ -58,6 +58,9 @@
*/
#define AUDIO_DB_ID GPP_E3
+/* SD controller needs additional card detect GPIO to support RTD3 */
+#define GPIO_SD_CARD_DETECT GPP_A7
+
#ifndef __ACPI__
/* Pad configuration in ramstage. */
static const struct pad_config gpio_table[] = {