Received: by 10.223.164.202 with SMTP id h10csp3652771wrb; Tue, 28 Nov 2017 15:05:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMZXc7TCCjhqRd4YkoKuZvbuSa43dkDj6RUqpKiwbgO5go+c075HcS/5RwnKS+APBkSsJWGo X-Received: by 10.159.216.150 with SMTP id s22mr807664plp.158.1511910335594; Tue, 28 Nov 2017 15:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511910335; cv=none; d=google.com; s=arc-20160816; b=hlqYtHy1BkAFRy6dUocNUpG3r0eFPY8Ic27QfIiAK2gHPpBk7keeOBw8ZzkNBCEv5g LpAftFSMynsvlyIeXAYVBRtXXzLLd1TFNhxzjGCxu5pGxU9g9oj5P6WdzTw3QNyTSeaI 8kEgbuRHdz14e41AljhP5vTlBvwO8UkTkV6I3tuyJQ0FSj+Nm9rpBo9gObRtnoVFlcf7 HnjvPw+8IhOWCPqONVoP/6vhB5shnixAlY+W7304+gMzfsvjPzR73vLGtoBKwQHU9MwA O3jNdhmGV2wuK1KK+o1IrHsf2cDg8foAoyiQl3Ur/D1fmm2CdQ3azKoKIZre6u588yOB s2ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :mime-version:dkim-signature:arc-authentication-results; bh=9OnlaxWXWI2crZGgEmeoPyQ6qpmWPwZ0bDfJHIUqN9c=; b=GlasZkP17m7JAdSaUaR2rC0+FmG0mqF42botbkzKOm3oR2xgrNnkfFaxWQnrKFL6aX eEueM+7JU9yWmRgwHPxFkXzzNU8DFGagPedoIkN2sUtzJvmaibIuhb7jYc0ZIygyvCoP wkoptn+8e8HDVz6NVN0UAQgUxNgf+Yx9LwcuzqPiixBjMGcb79ZhhGLXSzrZ0Vv4e/um WjT5p9EbTF/iSU93IVYQM6KYDFa7dBQnMowtVMFVee+s3/GRBiW/vxUCiiCsagixoHZy 8AdVzJGpt7p33tusjfhWzmUQUbT8Ic3cZhHOGklZK4Yr8FNXdbRvWTZStaJgYcjYB8N8 6bCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arasan-com.20150623.gappssmtp.com header.s=20150623 header.b=cDTLFFLK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si182880plk.413.2017.11.28.15.05.25; Tue, 28 Nov 2017 15:05:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@arasan-com.20150623.gappssmtp.com header.s=20150623 header.b=cDTLFFLK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbdK1XDg (ORCPT + 70 others); Tue, 28 Nov 2017 18:03:36 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39973 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbdK1XDd (ORCPT ); Tue, 28 Nov 2017 18:03:33 -0500 Received: by mail-pl0-f65.google.com with SMTP id 1so867749pla.7 for ; Tue, 28 Nov 2017 15:03:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arasan-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:to:cc:subject:date:message-id; bh=9OnlaxWXWI2crZGgEmeoPyQ6qpmWPwZ0bDfJHIUqN9c=; b=cDTLFFLK2JNIna5ITI2CYfq2qvJM1mSrb69zus5LGkwzgqLnMnoVww2jG1H4jJklov b2kaDu+ed3Oid+9xY9xJrdah7LvDt3gARAps0JvpRQWa4jjWba46ucg2Jv4UQLgHJI6X w6KGQ6MwFKwI/fw0LGosO+BXkSa+vQt65eKd0E3XFOaYwWaILRJtVAKBSuY7EGXMKxZr kwisPblcweV8KGJ/X2X2Opbq1+z1WC7zLIZFbUR3E4mGxEHclp2c33CQWi+rA8EFbgIY nzXY0TllBJXETvxXKwUJzOd/Xd/JdXbu14icegcsFMeC0OQCJGABjBPxKRcP5pCAvlvT zuEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id; bh=9OnlaxWXWI2crZGgEmeoPyQ6qpmWPwZ0bDfJHIUqN9c=; b=ahVayGlPb+P5Y6jGfJqNTyLJtHM8k6U21YO7IEMUAElES8ixaUY1LvEDHeXsU3L/Gl sPnRbh0A2UXG+C4ggR+mmcRM20f0ql1XEFAaB3QVyDvhPeBe51x6WCh63ujaZSPe/UKA sOxxl9H6DV1HjlCgwuvxo+tH0R9qVAFoUM/pJgJstV4FIy0OLOMz8JrCJvWmNrFtixS6 zNTROuEapYm3GI+WmjLP0i6xuExkx3oBG0Uup9rxKPaIoJQLol0yBTjMJGYNn16St2l2 7OlzLzO9LwLeDiweN2VoeNzBFpXramka5+nHTD5a0mEBJ2mgO2wKotH/yMLLyld4nOVj lshw== X-Gm-Message-State: AJaThX7C7xbcRuMAg74gwcHfs0YAAztfLJ39wIDnOIbtlHPm2eXwZBMm EKcTdZdiapfHOe0dHAiqHaYUF/mlUjFRG24SWlymPeVPsONVzdLz3vmANZASGcO+/lX6MhicVf9 y5fjqZkVeIj/hd58LGQ== MIME-Version: 1.0 X-Received: by 10.159.204.147 with SMTP id t19mr813831plo.222.1511910212479; Tue, 28 Nov 2017 15:03:32 -0800 (PST) Received: from localhost.localdomain (c-73-15-160-126.hsd1.ca.comcast.net. [73.15.160.126]) by smtp.gmail.com with ESMTPSA id n10sm221833pfk.174.2017.11.28.15.03.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 15:03:31 -0800 (PST) From: Atul Garg To: agarg@arasan.com, linux-mmc@vger.kernel.org, kishon@ti.com, rk@ti.com, nm@ti.com, nsekhar@ti.com, ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH V4] mmc:host:sdhci-pci:Addition of Arasan PCI Controller with integrated phy. Date: Tue, 28 Nov 2017 15:03:21 -0800 Message-Id: <1511910201-6095-1-git-send-email-agarg@arasan.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Arasan controller is based on a FPGA platform and has integrated phy with specific registers used during initialization and management of different modes. The phy and the controller are integrated and registers are very specific to Arasan. Arasan being an IP provider, licenses these IPs to various companies for integration of IP in custom SOCs. The custom SOCs define own register map depending on how bits are tied inside the SOC for phy registers, depending on SOC memory plan and hence will require own platform drivers. If more details on phy registers are required, an interface document is hosted at https: //arasandotcom/NF/eMMC5.1 PHY Programming in Linux.pdf. Signed-off-by: Atul Garg --- V4 - Created arasan_phy_poll function to have common timeout call. .Restructured arasan_set_phy to arasan_select_phy_clock and .arasan_phy_set to have single set of registers to be programmed for different modes. .Applied code style suggestions from Adrian Hunter . V3 - Removed sdhci-pci-arasan.h. Code and interface document mentioned above are made relevant..Applied code style suggestions from Sekhar Nori and .Adrian Hunter . V2 - Removed code from sdhci-pci-core.c and created sdhci-pci-arasan.c and .sdhci-pci-arasan.h. V1 - Initial Patch coded in sdhci-pci-core.c. drivers/mmc/host/Makefile | 2 +- drivers/mmc/host/sdhci-pci-arasan.c | 314 ++++++++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-pci-core.c | 14 ++ drivers/mmc/host/sdhci-pci.h | 6 + 4 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 drivers/mmc/host/sdhci-pci-arasan.c diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index ab61a3e..6781b81 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile @@ -10,7 +10,7 @@ obj-$(CONFIG_MMC_MXC) += mxcmmc.o obj-$(CONFIG_MMC_MXS) += mxs-mmc.o obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o -sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o +sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-data.o obj-$(CONFIG_MMC_SDHCI_ACPI) += sdhci-acpi.o obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o diff --git a/drivers/mmc/host/sdhci-pci-arasan.c b/drivers/mmc/host/sdhci-pci-arasan.c new file mode 100644 index 0000000..6529f30 --- /dev/null +++ b/drivers/mmc/host/sdhci-pci-arasan.c @@ -0,0 +1,314 @@ +/* + * Copyright (C) 2017 Arasan Chip Systems Inc., + * + * Author: Atul Garg + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include +#include + +#include "sdhci.h" +#include "sdhci-pci.h" + +/* Extra registers for Arasan SD Host Controller for eMMC5.1 PHY */ +#define PHY_ADDR_REG 0x300 +#define PHY_DAT_REG 0x304 + +#define PHY_WRITE BIT(8) +#define PHY_BUSY BIT(9) +#define DATA_MASK 0xFF + +/* eMMC5.1 PHY Specific Registers */ +#define DLL_STS 0x00 +#define IPAD_CTRL1 0x01 +#define IPAD_CTRL2 0x02 +#define IPAD_STS 0x03 +#define IOREN_CTRL1 0x06 +#define IOREN_CTRL2 0x07 +#define IOPU_CTRL1 0x08 +#define IOPU_CTRL2 0x09 +#define ITAP_DELAY 0x0C +#define OTAP_DELAY 0x0D +#define STRB_SEL 0x0E +#define CLKBUF_SEL 0x0F +#define MODE_CTRL 0x11 +#define DLL_TRIM 0x12 +#define CMD_CTRL 0x20 +#define DATA_CTRL 0x21 +#define STRB_CTRL 0x22 +#define CLK_CTRL 0x23 +#define PHY_CTRL 0x24 + +#define DLL_EN BIT(3) +#define RTRIM_EN BIT(1) +#define PDB_EN BIT(1) +#define RETB_EN BIT(6) +#define ODEN_CMD BIT(1) +#define ODEN_DAT 0xFF +#define REN_STRB BIT(0) +#define REN_CMD BIT(1) +#define REN_DAT 0xFF +#define PU_CMD BIT(1) +#define PU_DAT 0xFF +#define ITAPDLY_EN BIT(0) +#define OTAPDLY_EN BIT(0) +#define OD_REL_CMD BIT(1) +#define OD_REL_DAT 0xFF +#define DLLTRM_ICP 0x8 +#define PDB_CMD BIT(0) +#define PDB_DAT 0xFF +#define PDB_STRB BIT(0) +#define PDB_CLK BIT(0) +#define CALDONE_MASK 0x10 +#define DLL_RDY_MASK 0x10 +#define MAX_CLK_BUF 0x7 + +/* Mode Controls */ +#define ENHSTRB_MODE BIT(0) +#define HS400_MODE BIT(1) +#define LEGACY_MODE BIT(2) +#define DDR50_MODE BIT(3) + +/* + * Controller has no specific bits for HS/HS200. + * Used BIT(4), BIT(5) for software programming. + */ +#define HS200_MODE BIT(4) +#define HS_MODE BIT(5) + +#define OTAPDLY(x) ((x << 1) | OTAPDLY_EN) +#define ITAPDLY(x) ((x << 1) | ITAPDLY_EN) +#define FREQSEL(x) ((x << 5) | DLL_EN) +#define IOPAD(x, y) ((x) | (y << 2)) + +/* Arasan private data */ +struct arasan_host { + u32 chg_clk; +}; + +static int arasan_phy_poll(struct sdhci_host *host, u32 offset, u32 mask); + +static int arasan_phy_write(struct sdhci_host *host, u8 data, u8 offset) +{ + sdhci_writew(host, data, PHY_DAT_REG); + sdhci_writew(host, (PHY_WRITE | offset), PHY_ADDR_REG); + arasan_phy_poll(host, PHY_ADDR_REG, PHY_BUSY); + return 0; +} + +static int arasan_phy_read(struct sdhci_host *host, u8 offset, u8 *data) +{ + sdhci_writew(host, 0, PHY_DAT_REG); + sdhci_writew(host, offset, PHY_ADDR_REG); + arasan_phy_poll(host, PHY_ADDR_REG, PHY_BUSY); + + /* Masking valid data bits */ + *data = sdhci_readw(host, PHY_DAT_REG) & DATA_MASK; + return 0; +} + +static int arasan_phy_poll(struct sdhci_host *host, u32 offset, u32 mask) +{ + ktime_t timeout = ktime_add_us(ktime_get(), 100); + bool failed; + u8 val = 0; + + while (1) { + failed = ktime_after(ktime_get(), timeout); + if (offset == PHY_ADDR_REG) { + val = sdhci_readw(host, PHY_ADDR_REG); + if (!(val & mask)) + return 0; + } else { + arasan_phy_read(host, offset, &val); + if (val & mask) + return 0; + } + if (failed) + return -EBUSY; + } +} + +/* Initialize the Arasan PHY */ +static int arasan_phy_init(struct sdhci_host *host) +{ + u8 val; + + /* Program IOPADs and wait for calibration to be done */ + if (arasan_phy_read(host, IPAD_CTRL1, &val) || + arasan_phy_write(host, val | RETB_EN | PDB_EN, IPAD_CTRL1) || + arasan_phy_read(host, IPAD_CTRL2, &val) || + arasan_phy_write(host, val | RTRIM_EN, IPAD_CTRL2)) + return -EBUSY; + arasan_phy_poll(host, IPAD_STS, CALDONE_MASK); + + /* Program CMD/Data lines */ + if (arasan_phy_read(host, IOREN_CTRL1, &val) || + arasan_phy_write(host, val | REN_CMD | REN_STRB, IOREN_CTRL1) || + arasan_phy_read(host, IOPU_CTRL1, &val) || + arasan_phy_write(host, val | PU_CMD, IOPU_CTRL1) || + arasan_phy_read(host, CMD_CTRL, &val) || + arasan_phy_write(host, val | PDB_CMD, CMD_CTRL) || + arasan_phy_read(host, IOREN_CTRL2, &val) || + arasan_phy_write(host, val | REN_DAT, IOREN_CTRL2) || + arasan_phy_read(host, IOPU_CTRL2, &val) || + arasan_phy_write(host, val | PU_DAT, IOPU_CTRL2) || + arasan_phy_read(host, DATA_CTRL, &val) || + arasan_phy_write(host, val | PDB_DAT, DATA_CTRL) || + arasan_phy_read(host, STRB_CTRL, &val) || + arasan_phy_write(host, val | PDB_STRB, STRB_CTRL) || + arasan_phy_read(host, CLK_CTRL, &val) || + arasan_phy_write(host, val | PDB_CLK, CLK_CTRL) || + arasan_phy_read(host, CLKBUF_SEL, &val) || + arasan_phy_write(host, val | MAX_CLK_BUF, CLKBUF_SEL) || + arasan_phy_write(host, LEGACY_MODE, MODE_CTRL)) + return -EBUSY; + return 0; +} + +/* Set Arasan PHY for different modes */ +static int arasan_phy_set(struct sdhci_host *host, u8 mode, u8 otap, + u8 drv_type, u8 itap, u8 trim, u8 clk) +{ + u8 val; + int ret; + + if (mode == HS_MODE || mode == HS200_MODE) { + ret = arasan_phy_write(host, 0x0, MODE_CTRL); + if (ret) + return ret; + } else { + ret = arasan_phy_write(host, mode, MODE_CTRL); + if (ret) + return ret; + } + if (mode == HS400_MODE || mode == HS200_MODE) { + ret = arasan_phy_read(host, IPAD_CTRL1, &val); + if (ret) + return ret; + ret = arasan_phy_write(host, IOPAD(val, drv_type), IPAD_CTRL1); + if (ret) + return ret; + } + if (mode == LEGACY_MODE) { + ret = arasan_phy_write(host, 0x0, OTAP_DELAY); + if (ret) + return ret; + ret = arasan_phy_write(host, 0x0, ITAP_DELAY); + if (ret) + return ret; + } else { + ret = arasan_phy_write(host, OTAPDLY(otap), OTAP_DELAY); + if (ret) + return ret; + if (mode != HS200_MODE) { + ret = arasan_phy_write(host, ITAPDLY(itap), ITAP_DELAY); + if (ret) + return ret; + } else { + ret = arasan_phy_write(host, 0x0, ITAP_DELAY); + if (ret) + return ret; + } + } + if (mode != LEGACY_MODE) { + ret = arasan_phy_write(host, trim, DLL_TRIM); + if (ret) + return ret; + } + ret = arasan_phy_write(host, 0, DLL_STS); + if (ret) + return ret; + if (mode != LEGACY_MODE) { + ret = arasan_phy_write(host, FREQSEL(clk), DLL_STS); + if (ret) + return ret; + arasan_phy_poll(host, DLL_STS, DLL_RDY_MASK); + } + return 0; +} + +static int arasan_select_phy_clock(struct sdhci_host *host) +{ + struct sdhci_pci_slot *slot = sdhci_priv(host); + struct arasan_host *arasan_host = sdhci_pci_priv(slot); + u8 clk; + + if (arasan_host->chg_clk == host->mmc->ios.clock) + return 0; + + arasan_host->chg_clk = host->mmc->ios.clock; + if (host->mmc->ios.clock == 200000000) + clk = 0x0; + else if (host->mmc->ios.clock == 100000000) + clk = 0x2; + else if (host->mmc->ios.clock == 50000000) + clk = 0x1; + else + clk = 0x0; + + if (host->mmc_host_ops.hs400_enhanced_strobe) { + arasan_phy_set(host, ENHSTRB_MODE, 1, 0x0, 0x0, + DLLTRM_ICP, clk); + } else { + switch (host->mmc->ios.timing) { + case MMC_TIMING_LEGACY: + arasan_phy_set(host, LEGACY_MODE, 0x0, 0x0, 0x0, + 0x0, 0x0); + break; + case MMC_TIMING_MMC_HS: + case MMC_TIMING_SD_HS: + arasan_phy_set(host, HS_MODE, 0x3, 0x0, 0x2, + DLLTRM_ICP, clk); + break; + case MMC_TIMING_MMC_HS200: + case MMC_TIMING_UHS_SDR104: + arasan_phy_set(host, HS200_MODE, 0x2, + host->mmc->ios.drv_type, 0x0, + DLLTRM_ICP, clk); + break; + case MMC_TIMING_MMC_DDR52: + case MMC_TIMING_UHS_DDR50: + arasan_phy_set(host, DDR50_MODE, 0x1, 0x0, + 0x0, DLLTRM_ICP, clk); + break; + case MMC_TIMING_MMC_HS400: + arasan_phy_set(host, HS400_MODE, 0x1, + host->mmc->ios.drv_type, 0xa, + DLLTRM_ICP, clk); + break; + default: + break; + } + } + return 0; +} + +int arasan_pci_probe_slot(struct sdhci_pci_slot *slot) +{ + int err; + + slot->host->mmc->caps |= MMC_CAP_NONREMOVABLE | MMC_CAP_8_BIT_DATA; + err = arasan_phy_init(slot->host); + if (err) + return -ENODEV; + return 0; +} + +void arasan_sdhci_set_clock(struct sdhci_host *host, unsigned int clock) +{ + sdhci_set_clock(host, clock); + + /* Change phy settings for the new clock */ + arasan_select_phy_clock(host); +} diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 3e4f04f..cb89161 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -1104,6 +1104,19 @@ static const struct sdhci_pci_fixes sdhci_rtsx = { .probe_slot = rtsx_probe_slot, }; +static const struct sdhci_ops arasan_sdhci_pci_ops = { + .set_clock = arasan_sdhci_set_clock, + .enable_dma = sdhci_pci_enable_dma, + .set_bus_width = sdhci_set_bus_width, + .reset = sdhci_reset, + .set_uhs_signaling = sdhci_set_uhs_signaling, +}; + +static const struct sdhci_pci_fixes sdhci_arasan = { + .probe_slot = arasan_pci_probe_slot, + .ops = &arasan_sdhci_pci_ops, +}; + /*AMD chipset generation*/ enum amd_chipset_gen { AMD_CHIPSET_BEFORE_ML, @@ -1306,6 +1319,7 @@ static const struct pci_device_id pci_ids[] = { SDHCI_PCI_DEVICE(O2, SDS1, o2), SDHCI_PCI_DEVICE(O2, SEABIRD0, o2), SDHCI_PCI_DEVICE(O2, SEABIRD1, o2), + SDHCI_PCI_DEVICE(ARASAN, PHY_EMMC, arasan), SDHCI_PCI_DEVICE_CLASS(AMD, SYSTEM_SDHCI, PCI_CLASS_MASK, amd), /* Generic SD host controller */ {PCI_DEVICE_CLASS(SYSTEM_SDHCI, PCI_CLASS_MASK)}, diff --git a/drivers/mmc/host/sdhci-pci.h b/drivers/mmc/host/sdhci-pci.h index 063506c..f590e78 100644 --- a/drivers/mmc/host/sdhci-pci.h +++ b/drivers/mmc/host/sdhci-pci.h @@ -54,6 +54,9 @@ #define PCI_SUBDEVICE_ID_NI_7884 0x7884 +#define PCI_VENDOR_ID_ARASAN 0x16e6 +#define PCI_DEVICE_ID_ARASAN_PHY_EMMC 0x0670 + /* * PCI device class and mask */ @@ -176,4 +179,7 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip); int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip); #endif +int arasan_pci_probe_slot(struct sdhci_pci_slot *slot); +void arasan_sdhci_set_clock(struct sdhci_host *host, unsigned int clock); + #endif /* __SDHCI_PCI_H */ -- 2.7.4 -- ATTENTION: The information contained in this message may be legally privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited by law. If you have received this message in error, please immediately notify the sender and/or Arasan Chip Systems, Inc. by telephone at (408) 282-1600 and delete or destroy any copy of this message. From 1583346593841682635@xxx Mon Nov 06 19:36:20 +0000 2017 X-GM-THRID: 1583346593841682635 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread