summaryrefslogtreecommitdiff
path: root/src/soc/intel/tigerlake/sd.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2020-04-07 14:33:37 -0700
committerDuncan Laurie <dlaurie@chromium.org>2020-04-17 20:00:15 +0000
commit3ed55e5da1ea3ed49a20aa3983fc6ac1bc366fb5 (patch)
treef9711e19d7c3efda6d1a2f805b657d303ada28b8 /src/soc/intel/tigerlake/sd.c
parent1e066117684997ff44af435854b885b6abf52c3f (diff)
downloadcoreboot-3ed55e5da1ea3ed49a20aa3983fc6ac1bc366fb5.tar.xz
soc/intel/tigerlake: Remove eMMC/SD support
Tigerlake platform does not have built in eMMC/SD support so all this code is unused and can be removed. Change-Id: I70ff983d175375171d5a649378f32f1062c0876d Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40372 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/tigerlake/sd.c')
-rw-r--r--src/soc/intel/tigerlake/sd.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/soc/intel/tigerlake/sd.c b/src/soc/intel/tigerlake/sd.c
deleted file mode 100644
index 857f175f98..0000000000
--- a/src/soc/intel/tigerlake/sd.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/* This file is part of the coreboot project. */
-
-/*
- * This file is created based on Intel Tiger Lake Processor PCH Datasheet
- * Document number: 575857
- * Chapter number: 26
- */
-
-#include <intelblocks/sd.h>
-#include <soc/soc_chip.h>
-
-int sd_fill_soc_gpio_info(struct acpi_gpio *gpio, struct device *dev)
-{
- config_t *config = config_of(dev);
-
- if (!config->sdcard_cd_gpio)
- return -1;
-
- gpio->type = ACPI_GPIO_TYPE_INTERRUPT;
- gpio->pull = ACPI_GPIO_PULL_NONE;
- gpio->irq.mode = ACPI_IRQ_EDGE_TRIGGERED;
- gpio->irq.polarity = ACPI_IRQ_ACTIVE_BOTH;
- gpio->irq.shared = ACPI_IRQ_SHARED;
- gpio->irq.wake = ACPI_IRQ_WAKE;
- gpio->interrupt_debounce_timeout = 10000; /* 100ms */
- gpio->pin_count = 1;
- gpio->pins[0] = config->sdcard_cd_gpio;
-
- return 0;
-}