Lines Matching defs:sdhci
2 * drivers/mmc/host/sdhci-spear.c
9 * Inspired by sdhci-pltfm.c
29 #include "sdhci.h"
35 /* sdhci ops */
46 struct spear_sdhci *sdhci;
51 host = sdhci_alloc_host(dev, sizeof(*sdhci));
54 dev_dbg(&pdev->dev, "cannot allocate memory for sdhci\n");
65 host->hw_name = "sdhci";
74 sdhci = sdhci_priv(host);
77 sdhci->clk = devm_clk_get(&pdev->dev, NULL);
78 if (IS_ERR(sdhci->clk)) {
79 ret = PTR_ERR(sdhci->clk);
84 ret = clk_prepare_enable(sdhci->clk);
90 ret = clk_set_rate(sdhci->clk, 50000000);
93 clk_get_rate(sdhci->clk));
96 * It is optional to use GPIOs for sdhci card detection. If we
112 clk_disable_unprepare(sdhci->clk);
116 dev_err(&pdev->dev, "spear-sdhci probe failed: %d\n", ret);
123 struct spear_sdhci *sdhci = sdhci_priv(host);
132 clk_disable_unprepare(sdhci->clk);
140 struct spear_sdhci *sdhci = sdhci_priv(host);
148 clk_disable(sdhci->clk);
156 struct spear_sdhci *sdhci = sdhci_priv(host);
159 ret = clk_enable(sdhci->clk);
172 { .compatible = "st,spear300-sdhci" },
179 .name = "sdhci",