Lines Matching +full:bcm2835 +full:- +full:mbox

3  * git://github.com/gonzoua/u-boot-pi.git master
6 * Tweaks for U-Boot upstreaming
9 * Portions (e.g. read/write macros, concepts for back-to-back register write
11 * https://github.com/raspberrypi/linux.git rpi-3.6.y
17 * Based on sdhci-bcm2708.c (c) 2010 Broadcom
34 * SDHCI platform device - Arasan SD controller in BCM2708
36 * Inspired by sdhci-pci.c, by Pierre Ossman
45 #include <asm/arch/mbox.h>
76 * successive writes to registers that are within two SD-card clock in bcm2835_sdhci_raw_writel()
79 * (Which is just as well - otherwise we'd have to nobble the DMA engine in bcm2835_sdhci_raw_writel()
83 while (timer_get_us() - bcm_host->last_write < in bcm2835_sdhci_raw_writel()
84 bcm_host->twoticks_delay) in bcm2835_sdhci_raw_writel()
88 writel(val, host->ioaddr + reg); in bcm2835_sdhci_raw_writel()
89 bcm_host->last_write = timer_get_us(); in bcm2835_sdhci_raw_writel()
94 return readl(host->ioaddr + reg); in bcm2835_sdhci_raw_readl()
169 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in bcm2835_sdhci_bind()
177 struct sdhci_host *host = &priv->host; in bcm2835_sdhci_probe()
184 return -EINVAL; in bcm2835_sdhci_probe()
206 priv->twoticks_delay = ((2 * 1000000) / MIN_FREQ) + 1; in bcm2835_sdhci_probe()
207 priv->last_write = 0; in bcm2835_sdhci_probe()
209 host->name = dev->name; in bcm2835_sdhci_probe()
210 host->ioaddr = (void *)base; in bcm2835_sdhci_probe()
211 host->quirks = SDHCI_QUIRK_BROKEN_VOLTAGE | SDHCI_QUIRK_BROKEN_R1B | in bcm2835_sdhci_probe()
213 host->max_clk = emmc_freq; in bcm2835_sdhci_probe()
214 host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195; in bcm2835_sdhci_probe()
215 host->ops = &bcm2835_ops; in bcm2835_sdhci_probe()
217 ret = sdhci_setup_cfg(&plat->cfg, host, emmc_freq, MIN_FREQ); in bcm2835_sdhci_probe()
223 upriv->mmc = &plat->mmc; in bcm2835_sdhci_probe()
224 host->mmc = &plat->mmc; in bcm2835_sdhci_probe()
225 host->mmc->priv = host; in bcm2835_sdhci_probe()
231 { .compatible = "brcm,bcm2835-sdhci" },
236 .name = "sdhci-bcm2835",