Lines Matching +full:is +full:- +full:wired
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
10 #include <reset-uclass.h>
27 * Description: this function is to configure the Arasan MMC HC.
29 * it is needed to configure the host controller.
42 if (plat->instance) { in sti_mmc_core_config()
43 ret = reset_deassert(&plat->reset); in sti_mmc_core_config()
51 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_1); in sti_mmc_core_config()
53 if (plat->instance) { in sti_mmc_core_config()
55 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_2); in sti_mmc_core_config()
57 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_3); in sti_mmc_core_config()
60 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_2); in sti_mmc_core_config()
62 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_3); in sti_mmc_core_config()
65 host->ioaddr + FLASHSS_MMC_CORE_CONFIG_4); in sti_mmc_core_config()
79 * MMC0 is wired to the SD slot, in sti_sdhci_probe()
80 * MMC1 is wired on the high speed connector in sti_sdhci_probe()
82 ret = reset_get_by_index(dev, 0, &plat->reset); in sti_sdhci_probe()
84 plat->instance = 1; in sti_sdhci_probe()
86 if (ret == -ENOENT) in sti_sdhci_probe()
87 plat->instance = 0; in sti_sdhci_probe()
95 host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD | in sti_sdhci_probe()
99 host->host_caps = MMC_MODE_DDR_52MHz; in sti_sdhci_probe()
101 ret = sdhci_setup_cfg(&plat->cfg, host, 50000000, 400000); in sti_sdhci_probe()
105 host->mmc = &plat->mmc; in sti_sdhci_probe()
106 host->mmc->priv = host; in sti_sdhci_probe()
107 host->mmc->dev = dev; in sti_sdhci_probe()
108 upriv->mmc = host->mmc; in sti_sdhci_probe()
117 host->name = strdup(dev->name); in sti_sdhci_ofdata_to_platdata()
118 host->ioaddr = (void *)devfdt_get_addr(dev); in sti_sdhci_ofdata_to_platdata()
120 host->bus_width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in sti_sdhci_ofdata_to_platdata()
121 "bus-width", 4); in sti_sdhci_ofdata_to_platdata()
130 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in sti_sdhci_bind()