#include "sdhci.h"
-#ifdef CONFIG_X86
-#include <asm/cpu_device_id.h>
-static bool sdhci_acpi_on_byt(void)
-{
- static const struct x86_cpu_id byt[] = {
- { X86_VENDOR_INTEL, 6, 0x37 },
- {}
- };
-
- return x86_match_cpu(byt);
-}
-#else
-static bool sdhci_acpi_on_byt(void)
-{
- return false;
-}
-#endif
-
enum {
SDHCI_ACPI_SD_CD = BIT(0),
SDHCI_ACPI_RUNTIME_PM = BIT(1),
.ops = &sdhci_acpi_ops_int,
};
-static void sdhci_acpi_int_dma_latency(struct sdhci_host *host)
-{
- if (sdhci_acpi_on_byt()) {
- host->dma_latency = 20;
- host->lat_cancel_delay = 275;
- }
-}
-
static int bxt_get_cd(struct mmc_host *mmc)
{
int gpio_cd = mmc_gpio_get_cd(mmc);
sdhci_readl(host, SDHCI_CAPABILITIES_1) == 0x00000807)
host->timeout_clk = 1000; /* 1000 kHz i.e. 1 MHz */
- sdhci_acpi_int_dma_latency(host);
-
return 0;
}
host = c->host;
- sdhci_acpi_int_dma_latency(host);
-
/* Platform specific code during sdio probe slot goes here */
return 0;
host = c->host;
- sdhci_acpi_int_dma_latency(host);
-
/* Platform specific code during sd probe slot goes here */
if (hid && !strcmp(hid, "80865ACA"))