2 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
14 static struct pci_device_id mmc_supported[] = {
15 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0 },
16 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1 },
20 int cpu_mmc_init(bd_t *bis)
22 struct sdhci_host *mmc_host;
28 for (i = 0; i < ARRAY_SIZE(mmc_supported); i++) {
29 devbusfn = pci_find_devices(mmc_supported, i);
33 mmc_host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host));
37 mmc_host->name = "Topcliff SDHCI";
38 pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_0, &iobase);
39 mmc_host->ioaddr = (void *)iobase;
41 ret = add_sdhci(mmc_host, 0, 0);