Lines Matching refs:host
24 struct sdhci_host *host;
27 host = (struct sdhci_host *)calloc(1, sizeof(struct sdhci_host));
28 if (!host) {
33 host->name = "atmel_sdhci";
34 host->ioaddr = regbase;
35 host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
39 free(host);
42 host->max_clk = max_clk;
44 add_sdhci(host, 0, min_clk);
58 static void atmel_sdhci_config_fcd(struct sdhci_host *host)
66 if ((host->mmc->cfg->host_caps & MMC_CAP_NONREMOVABLE)
68 || dm_gpio_get_value(&host->cd_gpio) >= 0
71 sdhci_readb(host, ATMEL_SDHC_MC1R);
73 sdhci_writeb(host, mc1r, ATMEL_SDHC_MC1R);
77 static int atmel_sdhci_deferred_probe(struct sdhci_host *host)
79 struct udevice *dev = host->mmc->dev;
86 atmel_sdhci_config_fcd(host);
99 struct sdhci_host *host = dev_get_priv(dev);
112 host->name = dev->name;
113 host->ioaddr = dev_read_addr_ptr(dev);
115 host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD;
116 host->bus_width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
138 host->max_clk = max_clk;
139 host->mmc = &plat->mmc;
140 host->mmc->dev = dev;
142 ret = sdhci_setup_cfg(&plat->cfg, host, 0, ATMEL_SDHC_MIN_FREQ);
146 host->mmc->priv = host;
147 host->ops = &atmel_sdhci_ops;
148 upriv->mmc = host->mmc;
154 atmel_sdhci_config_fcd(host);