diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-06-26 16:36:15 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-06-27 16:31:30 +0800 |
commit | da2364cc14a0b34411c4a228ae687a23504afe04 (patch) | |
tree | 137855067bd0e1c6413fb6cbe4341a531cf9ef88 /arch/x86/cpu/queensbay/topcliff.c | |
parent | 7df4ff2c2689a6d3c16eb0c3cce098fcac622b0c (diff) | |
download | u-boot-da2364cc14a0b34411c4a228ae687a23504afe04.tar.gz |
Revert "x86: Convert MMC to driver model"
This reverts commit ddb3ac3c716f56cead695444e65a7ba7b0946555.
With MMC converted to driver model, SCSI driver is broken due to
zero address access at (ops->read) in block_dread() function.
The fix (SCSI driver converted to DM) is ready in u-boot-dm branch,
but it is too late for this relese to get that in.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/queensbay/topcliff.c')
-rw-r--r-- | arch/x86/cpu/queensbay/topcliff.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/x86/cpu/queensbay/topcliff.c b/arch/x86/cpu/queensbay/topcliff.c new file mode 100644 index 0000000000..b76dd7de69 --- /dev/null +++ b/arch/x86/cpu/queensbay/topcliff.c @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <mmc.h> +#include <pci_ids.h> + +static struct pci_device_id mmc_supported[] = { + { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0 }, + { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1 }, + {}, +}; + +int cpu_mmc_init(bd_t *bis) +{ + return pci_mmc_init("Topcliff SDHCI", mmc_supported); +} |