/openbmc/linux/drivers/mmc/host/ |
H A D | owl-mmc.c | 115 struct mmc_host *mmc; member 566 struct mmc_host *mmc; in owl_mmc_probe() local 571 if (!mmc) { in owl_mmc_probe() 579 owl_host->mmc = mmc; in owl_mmc_probe() 604 mmc->max_blk_size = 512; in owl_mmc_probe() 605 mmc->max_segs = 256; in owl_mmc_probe() 609 mmc->f_min = 100000; in owl_mmc_probe() 610 mmc->f_max = 52000000; in owl_mmc_probe() 666 mmc_free_host(mmc); in owl_mmc_probe() 676 mmc_remove_host(mmc); in owl_mmc_remove() [all …]
|
H A D | wbsd.c | 1194 if (!mmc) in wbsd_alloc_mmc() 1198 host->mmc = mmc; in wbsd_alloc_mmc() 1233 mmc->max_seg_size = mmc->max_req_size; in wbsd_alloc_mmc() 1245 mmc->max_blk_count = mmc->max_req_size; in wbsd_alloc_mmc() 1258 if (!mmc) in wbsd_free_mmc() 1266 mmc_free_host(mmc); in wbsd_free_mmc() 1729 if (!mmc) in wbsd_shutdown() 1807 if (mmc == NULL) in wbsd_platform_suspend() 1823 if (mmc == NULL) in wbsd_platform_resume() 1847 if (mmc == NULL) in wbsd_pnp_suspend() [all …]
|
H A D | sdhci-brcmstb.c | 68 struct sdhci_host *host = mmc_priv(mmc); in sdhci_brcmstb_hs400es() 86 host->mmc->actual_clock = 0; in sdhci_brcmstb_set_clock() 128 sdhci_dumpregs(mmc_priv(mmc)); in sdhci_brcmstb_dumpregs() 133 struct sdhci_host *host = mmc_priv(mmc); in sdhci_brcmstb_cqe_enable() 142 sdhci_cqe_enable(mmc); in sdhci_brcmstb_cqe_enable() 212 dev_dbg(mmc_dev(host->mmc), "CQE is enabled\n"); in sdhci_brcmstb_add_host() 218 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_brcmstb_add_host() 234 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_brcmstb_add_host() 294 res = mmc_of_parse(host->mmc); in sdhci_brcmstb_probe() 303 (host->mmc->caps & MMC_CAP_NONREMOVABLE)) in sdhci_brcmstb_probe() [all …]
|
H A D | alcor.c | 765 if (alcor_get_cd(mmc)) in alcor_request() 1059 mmc->ops = &alcor_sdc_ops; in alcor_init_mmc() 1074 mmc->max_blk_count = 240; in alcor_init_mmc() 1075 mmc->max_req_size = mmc->max_blk_count * mmc->max_blk_size; in alcor_init_mmc() 1082 struct mmc_host *mmc; in alcor_pci_sdmmc_drv_probe() local 1087 if (!mmc) { in alcor_pci_sdmmc_drv_probe() 1092 host = mmc_priv(mmc); in alcor_pci_sdmmc_drv_probe() 1117 ret = mmc_add_host(mmc); in alcor_pci_sdmmc_drv_probe() 1124 mmc_free_host(mmc); in alcor_pci_sdmmc_drv_probe() 1137 mmc_remove_host(mmc); in alcor_pci_sdmmc_drv_remove() [all …]
|
H A D | mvsdio.c | 48 struct mmc_host *mmc; member 710 if (!mmc) { in mvsd_probe() 715 host = mmc_priv(mmc); in mvsd_probe() 716 host->mmc = mmc; in mvsd_probe() 734 mmc->ops = &mvsd_ops; in mvsd_probe() 744 mmc->max_segs = 1; in mvsd_probe() 745 mmc->max_seg_size = mmc->max_blk_size * mmc->max_blk_count; in mvsd_probe() 746 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in mvsd_probe() 790 if (mmc) { in mvsd_probe() 793 mmc_free_host(mmc); in mvsd_probe() [all …]
|
H A D | au1xmmc.c | 89 struct mmc_host *mmc; member 934 struct mmc_host *mmc; in au1xmmc_probe() local 940 if (!mmc) { in au1xmmc_probe() 946 host = mmc_priv(mmc); in au1xmmc_probe() 947 host->mmc = mmc; in au1xmmc_probe() 977 mmc->ops = &au1xmmc_ops; in au1xmmc_probe() 979 mmc->f_min = 450000; in au1xmmc_probe() 980 mmc->f_max = 24000000; in au1xmmc_probe() 1001 mmc->f_max = 52000000; in au1xmmc_probe() 1066 ret = mmc_add_host(mmc); in au1xmmc_probe() [all …]
|
H A D | toshsd.c | 357 __toshsd_set_ios(host->mmc, &host->mmc->ios); in toshsd_irq() 608 struct mmc_host *mmc; in toshsd_probe() local 616 if (!mmc) { in toshsd_probe() 621 host = mmc_priv(mmc); in toshsd_probe() 622 host->mmc = mmc; in toshsd_probe() 638 mmc->ops = &toshsd_ops; in toshsd_probe() 642 mmc->f_min = HCLK / 512; in toshsd_probe() 643 mmc->f_max = HCLK; in toshsd_probe() 654 ret = mmc_add_host(mmc); in toshsd_probe() 672 mmc_free_host(mmc); in toshsd_probe() [all …]
|
H A D | sdhci-xenon.c | 92 host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; in xenon_enable_sdhc() 225 struct mmc_host *mmc = host->mmc; in xenon_set_power() local 236 if (!IS_ERR(mmc->supply.vmmc)) in xenon_set_power() 237 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); in xenon_set_power() 278 struct sdhci_host *host = mmc_priv(mmc); in xenon_set_ios() 304 sdhci_set_ios(mmc, ios); in xenon_set_ios() 314 struct sdhci_host *host = mmc_priv(mmc); in xenon_start_signal_voltage_switch() 382 sdhci_enable_sdio_irq(mmc, enable); in xenon_enable_sdio_irq() 420 struct mmc_host *mmc = host->mmc; in xenon_probe_params() local 536 err = mmc_of_parse(host->mmc); in xenon_probe() [all …]
|
H A D | sdhci-bcm-kona.c | 132 ret = mmc_gpio_get_ro(host->mmc); in sdhci_bcm_kona_sd_card_emulate() 153 if (mmc_gpio_get_cd(host->mmc) > 0) { in sdhci_bcm_kona_card_event() 154 dev_dbg(mmc_dev(host->mmc), in sdhci_bcm_kona_card_event() 158 dev_dbg(mmc_dev(host->mmc), in sdhci_bcm_kona_card_event() 225 ret = mmc_of_parse(host->mmc); in sdhci_bcm_kona_probe() 229 if (!host->mmc->f_max) { in sdhci_bcm_kona_probe() 256 mmc_card_is_removable(host->mmc) ? 'N' : 'Y'); in sdhci_bcm_kona_probe() 258 (mmc_gpio_get_cd(host->mmc) != -ENOSYS) ? 'Y' : 'N', in sdhci_bcm_kona_probe() 261 if (!mmc_card_is_removable(host->mmc)) in sdhci_bcm_kona_probe() 278 if (!mmc_card_is_removable(host->mmc)) { in sdhci_bcm_kona_probe() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | amlogic,meson-gx-mmc.yaml | 4 $id: http://devicetree.org/schemas/mmc/amlogic,meson-gx-mmc.yaml# 17 - $ref: mmc-controller.yaml# 22 - const: amlogic,meson-axg-mmc 24 - const: amlogic,meson-gx-mmc 25 - const: amlogic,meson-gxbb-mmc 33 - description: mmc controller instance 68 mmc@70000 { 69 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
|
H A D | sunplus,mmc.yaml | 5 $id: http://devicetree.org/schemas/mmc/sunplus,mmc.yaml# 15 - $ref: mmc-controller.yaml 20 - sunplus,sp7021-mmc 47 mmc0: mmc@9c003b00 { 48 compatible = "sunplus,sp7021-mmc"; 57 cap-mmc-highspeed; 58 mmc-ddr-3_3v;
|
H A D | mxs-mmc.yaml | 4 $id: http://devicetree.org/schemas/mmc/mxs-mmc.yaml# 16 This file documents differences between the core properties in mmc.txt 20 - $ref: mmc-controller.yaml 25 - fsl,imx23-mmc 26 - fsl,imx28-mmc 51 mmc@80010000 { 52 compatible = "fsl,imx28-mmc";
|
H A D | moxa,moxart-mmc.txt | 3 Inherits from mmc binding[1]. 5 [1] Documentation/devicetree/bindings/mmc/mmc.txt 9 - compatible : Must be "moxa,moxart-mmc" or "faraday,ftsdc010" 22 mmc: mmc@98e00000 { 23 compatible = "moxa,moxart-mmc";
|
/openbmc/u-boot/board/freescale/common/ |
H A D | sdhc_boot.c | 20 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr) in mmc_get_env_addr() argument 25 blklen = mmc->read_bl_len; in mmc_get_env_addr() 31 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr() 53 if (mmc->high_capacity) { in mmc_get_env_addr() 59 if ((tmp + CONFIG_ENV_SIZE > mmc->capacity) || in mmc_get_env_addr()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | tangier_sdhci.c | 19 struct mmc mmc; member 27 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in sdhci_tangier_bind() 59 upriv->mmc = &plat->mmc; in sdhci_tangier_probe() 60 host->mmc = &plat->mmc; in sdhci_tangier_probe() 61 host->mmc->priv = host; in sdhci_tangier_probe()
|
H A D | arm_pl180_mmci.c | 32 struct mmc mmc; member 367 int arm_pl180_mmci_init(struct pl180_mmc_host *host, struct mmc **mmc) in arm_pl180_mmci_init() argument 393 if (!*mmc) in arm_pl180_mmci_init() 396 (*mmc)->block_dev.devnum); in arm_pl180_mmci_init() 420 struct mmc *mmc = &pdata->mmc; in arm_pl180_mmc_probe() local 468 mmc->priv = host; in arm_pl180_mmc_probe() 469 mmc->dev = dev; in arm_pl180_mmc_probe() 470 upriv->mmc = mmc; in arm_pl180_mmc_probe() 485 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_request() local 492 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_set_ios() local [all …]
|
H A D | k3_arsan_sdhci.c | 19 struct mmc mmc; member 64 host->mmc = &plat->mmc; in k3_arasan_sdhci_probe() 67 host->mmc->priv = host; in k3_arasan_sdhci_probe() 68 host->mmc->dev = dev; in k3_arasan_sdhci_probe() 69 upriv->mmc = host->mmc; in k3_arasan_sdhci_probe() 91 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in k3_arasan_sdhci_bind()
|
H A D | aspeed_sdhci.c | 22 struct mmc mmc; member 95 host->mmc = &plat->mmc; in aspeed_sdhci_probe() 99 host->mmc->drv_type = dev_read_u32_default(dev, "sdhci-drive-type", 0); in aspeed_sdhci_probe() 100 host->mmc->priv = host; in aspeed_sdhci_probe() 101 host->mmc->dev = dev; in aspeed_sdhci_probe() 102 upriv->mmc = host->mmc; in aspeed_sdhci_probe() 125 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in aspeed_sdhci_bind()
|
H A D | rockchip_sdhci.c | 25 struct mmc mmc; member 73 host->mmc = &plat->mmc; in arasan_sdhci_probe() 76 host->mmc->priv = &prv->host; in arasan_sdhci_probe() 77 host->mmc->dev = dev; in arasan_sdhci_probe() 78 upriv->mmc = host->mmc; in arasan_sdhci_probe() 100 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in rockchip_sdhci_bind()
|
H A D | atmel_sdhci.c | 51 struct mmc mmc; member 96 host->mmc = &plat->mmc; in atmel_sdhci_probe() 97 host->mmc->dev = dev; in atmel_sdhci_probe() 98 host->mmc->priv = host; in atmel_sdhci_probe() 99 upriv->mmc = host->mmc; in atmel_sdhci_probe() 110 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in atmel_sdhci_bind()
|
H A D | dw_mmc.c | 222 struct mmc *mmc = mmc_get_mmc_dev(dev); local 224 static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, 436 struct mmc *mmc = mmc_get_mmc_dev(dev); local 438 static int dwmci_set_ios(struct mmc *mmc) 444 debug("Buswidth = %d, clock: %d\n", mmc->bus_width, mmc->clock); 462 if (mmc->ddr_mode) 475 static int dwmci_init(struct mmc *mmc) argument 522 struct mmc *mmc = mmc_get_mmc_dev(dev); local 524 return dwmci_init(mmc); 567 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg) argument [all …]
|
H A D | sh_mmcif.c | 546 if (mmc->clock) in sh_mmcif_set_ios_common() 556 debug("clock = %d, buswidth = %d\n", mmc->clock, mmc->bus_width); in sh_mmcif_set_ios_common() 569 static void *mmc_priv(struct mmc *mmc) in mmc_priv() argument 574 static int sh_mmcif_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_mmcif_send_cmd() argument 582 static int sh_mmcif_set_ios(struct mmc *mmc) in sh_mmcif_set_ios() argument 589 static int sh_mmcif_initialize(struct mmc *mmc) in sh_mmcif_initialize() argument 613 struct mmc *mmc; in mmcif_mmc_init() local 628 if (mmc == NULL) { in mmcif_mmc_init() 639 struct mmc mmc; member 653 struct mmc *mmc = mmc_get_mmc_dev(dev); in sh_mmcif_dm_set_ios() local [all …]
|
/openbmc/u-boot/board/tqc/tqma6/ |
H A D | tqma6.c | 88 int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() argument 90 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd() 97 ret = tqma6_bb_board_mmc_getcd(mmc); in board_mmc_getcd() 102 int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() argument 104 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getwp() 111 ret = tqma6_bb_board_mmc_getwp(mmc); in board_mmc_getwp() 124 struct mmc *mmc = find_mmc_device(0); in board_mmc_init() local 125 if (mmc) in board_mmc_init() 126 mmc_set_dsr(mmc, tqma6_emmc_dsr); in board_mmc_init()
|
/openbmc/u-boot/board/ti/dra7xx/ |
H A D | README | 14 'mmc bootbus' to set the required rate (see TRM) and 'mmc partconfig' to 19 U-Boot # mmc dev 1 1 21 U-Boot # mmc write ${loadaddr} 0 100 23 U-Boot # mmc write ${loadaddr} 300 400 24 U-Boot # mmc bootbus 1 2 0 2 25 U-Boot # mmc partconf 1 1 1 0 26 U-Boot # mmc rst-function 1 1
|
/openbmc/u-boot/cmd/ |
H A D | mmc_spi.c | 39 struct mmc *mmc; in do_mmc_spi() local 70 mmc = mmc_spi_init(bus, cs, speed, mode); in do_mmc_spi() 71 if (!mmc) { in do_mmc_spi() 75 printf("%s: %d at %u:%u hz %u mode %u\n", mmc->cfg->name, in do_mmc_spi() 76 mmc->block_dev.devnum, bus, cs, speed, mode); in do_mmc_spi() 77 mmc_init(mmc); in do_mmc_spi()
|