Lines Matching +full:sdhci +full:- +full:5
1 /* SPDX-License-Identifier: GPL-2.0+ */
7 * Murray.Jensen@cmst.csiro.au, 27-Jan-01.
34 #define SDHCI_TRNS_MULTI BIT(5)
76 #define SDHCI_CTRL_8BITBUS BIT(5)
99 #define SDHCI_PROG_CLOCK_MODE BIT(5)
118 #define SDHCI_INT_DATA_AVAIL BIT(5)
143 #define SDHCI_INT_ALL_MASK ((unsigned int)-1)
183 /* 4C-4F reserved for more max current */
190 /* 55-57 reserved */
194 /* 60-FB reserved */
207 #define SDHCI_GET_VERSION(x) (x->version & SDHCI_SPEC_VER_MASK)
226 * the hardware cannot operate correctly in high-speed mode,
227 * this quirk forces the sdhci host-controller to non high-speed mode
229 #define SDHCI_QUIRK_BROKEN_HISPD_MODE BIT(5)
286 if (unlikely(host->ops->write_l)) in sdhci_writel()
287 host->ops->write_l(host, val, reg); in sdhci_writel()
289 writel(val, host->ioaddr + reg); in sdhci_writel()
294 if (unlikely(host->ops->write_w)) in sdhci_writew()
295 host->ops->write_w(host, val, reg); in sdhci_writew()
297 writew(val, host->ioaddr + reg); in sdhci_writew()
302 if (unlikely(host->ops->write_b)) in sdhci_writeb()
303 host->ops->write_b(host, val, reg); in sdhci_writeb()
305 writeb(val, host->ioaddr + reg); in sdhci_writeb()
310 if (unlikely(host->ops->read_l)) in sdhci_readl()
311 return host->ops->read_l(host, reg); in sdhci_readl()
313 return readl(host->ioaddr + reg); in sdhci_readl()
318 if (unlikely(host->ops->read_w)) in sdhci_readw()
319 return host->ops->read_w(host, reg); in sdhci_readw()
321 return readw(host->ioaddr + reg); in sdhci_readw()
326 if (unlikely(host->ops->read_b)) in sdhci_readb()
327 return host->ops->read_b(host, reg); in sdhci_readb()
329 return readb(host->ioaddr + reg); in sdhci_readb()
336 writel(val, host->ioaddr + reg); in sdhci_writel()
341 writew(val, host->ioaddr + reg); in sdhci_writew()
346 writeb(val, host->ioaddr + reg); in sdhci_writeb()
350 return readl(host->ioaddr + reg); in sdhci_readl()
355 return readw(host->ioaddr + reg); in sdhci_readw()
360 return readb(host->ioaddr + reg); in sdhci_readb()
366 * sdhci_setup_cfg() - Set up the configuration for DWMMC
368 * This is used to set up an SDHCI device when you are using CONFIG_BLK.
392 * @cfg: Configuration structure to fill in (generally &plat->mmc)
393 * @host: SDHCI host structure
401 * sdhci_bind() - Set up a new MMC block device
403 * This is used to set up an SDHCI block device when you are using CONFIG_BLK.
409 * @mmc: Pointer to mmc structure (normally &plat->mmc)
410 * @cfg: Empty configuration structure (generally &plat->cfg). This is
412 * this in is to set mmc->cfg to it.
413 * @return 0 if OK, -ve if the block device could not be created
419 * add_sdhci() - Add a new SDHCI interface
423 * @host: SDHCI host structure
426 * @return 0 if OK, -ve on error