Bin Meng | 8046aa8 | 2014-12-17 15:50:46 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Simon Glass | 509805b | 2015-01-27 22:13:39 -0700 | [diff] [blame^] | 8 | #include <mmc.h> |
Bin Meng | 8046aa8 | 2014-12-17 15:50:46 +0800 | [diff] [blame] | 9 | #include <pci_ids.h> |
Bin Meng | 8046aa8 | 2014-12-17 15:50:46 +0800 | [diff] [blame] | 10 | |
| 11 | static struct pci_device_id mmc_supported[] = { |
| 12 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0 }, |
| 13 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1 }, |
Bin Meng | 8046aa8 | 2014-12-17 15:50:46 +0800 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | int cpu_mmc_init(bd_t *bis) |
| 17 | { |
Simon Glass | 509805b | 2015-01-27 22:13:39 -0700 | [diff] [blame^] | 18 | return pci_mmc_init("Topcliff SDHCI", mmc_supported, |
| 19 | ARRAY_SIZE(mmc_supported)); |
Bin Meng | 8046aa8 | 2014-12-17 15:50:46 +0800 | [diff] [blame] | 20 | } |