Lines Matching +full:mmc +full:- +full:hs400 +full:- +full:enhanced +full:- +full:strobe

5  * SPDX-License-Identifier:	GPL-2.0+
8 * Murray.Jensen@cmst.csiro.au, 27-Jan-01.
14 #include <mmc.h>
145 #define SDHCI_INT_ALL_MASK ((unsigned int)-1)
149 /* 3E-3F reserved */
193 /* 4C-4F reserved for more max current */
200 /* 55-57 reserved */
204 /* 60-FB reserved */
217 #define SDHCI_GET_VERSION(x) (x->version & SDHCI_SPEC_VER_MASK)
261 * set_enhanced_strobe() - Set HS400 Enhanced Strobe config
264 * HS400 ES, and should set any host-specific configuration
268 * Return: 0 if successful, -ve on error
282 struct mmc *mmc; member
302 if (unlikely(host->ops->write_l)) in sdhci_writel()
303 host->ops->write_l(host, val, reg); in sdhci_writel()
305 writel(val, host->ioaddr + reg); in sdhci_writel()
310 if (unlikely(host->ops->write_w)) in sdhci_writew()
311 host->ops->write_w(host, val, reg); in sdhci_writew()
313 writew(val, host->ioaddr + reg); in sdhci_writew()
318 if (unlikely(host->ops->write_b)) in sdhci_writeb()
319 host->ops->write_b(host, val, reg); in sdhci_writeb()
321 writeb(val, host->ioaddr + reg); in sdhci_writeb()
326 if (unlikely(host->ops->read_l)) in sdhci_readl()
327 return host->ops->read_l(host, reg); in sdhci_readl()
329 return readl(host->ioaddr + reg); in sdhci_readl()
334 if (unlikely(host->ops->read_w)) in sdhci_readw()
335 return host->ops->read_w(host, reg); in sdhci_readw()
337 return readw(host->ioaddr + reg); in sdhci_readw()
342 if (unlikely(host->ops->read_b)) in sdhci_readb()
343 return host->ops->read_b(host, reg); in sdhci_readb()
345 return readb(host->ioaddr + reg); in sdhci_readb()
352 writel(val, host->ioaddr + reg); in sdhci_writel()
357 writew(val, host->ioaddr + reg); in sdhci_writew()
362 writeb(val, host->ioaddr + reg); in sdhci_writeb()
366 return readl(host->ioaddr + reg); in sdhci_readl()
371 return readw(host->ioaddr + reg); in sdhci_readw()
376 return readb(host->ioaddr + reg); in sdhci_readb()
382 * sdhci_setup_cfg() - Set up the configuration for DWMMC
386 * This should be called from your MMC driver's probe() method once you have
390 * the configuration (struct mmc_config) and the MMC device info (struct mmc).
395 * struct mmc mmc;
408 * @cfg: Configuration structure to fill in (generally &plat->mmc)
417 * sdhci_bind() - Set up a new MMC block device
425 * @mmc: Pointer to mmc structure (normally &plat->mmc)
426 * @cfg: Empty configuration structure (generally &plat->cfg). This is
428 * this in is to set mmc->cfg to it.
429 * @return 0 if OK, -ve if the block device could not be created
431 int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg);
435 * add_sdhci() - Add a new SDHCI interface
442 * @return 0 if OK, -ve on error