summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-06-26 23:36:15 (GMT)
committerBin Meng <bmeng.cn@gmail.com>2017-06-27 08:31:30 (GMT)
commitda2364cc14a0b34411c4a228ae687a23504afe04 (patch)
tree137855067bd0e1c6413fb6cbe4341a531cf9ef88 /include
parent7df4ff2c2689a6d3c16eb0c3cce098fcac622b0c (diff)
downloadu-boot-da2364cc14a0b34411c4a228ae687a23504afe04.tar.xz
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 'include')
-rw-r--r--include/mmc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 6a0ea0a..00576fa 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -585,6 +585,18 @@ int cpu_mmc_init(bd_t *bis);
int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
int mmc_get_env_dev(void);
+struct pci_device_id;
+
+/**
+ * pci_mmc_init() - set up PCI MMC devices
+ *
+ * This finds all the matching PCI IDs and sets them up as MMC devices.
+ *
+ * @name: Name to use for devices
+ * @mmc_supported: PCI IDs to search for, terminated by {0, 0}
+ */
+int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported);
+
/* Set block count limit because of 16 bit register limit on some hardware*/
#ifndef CONFIG_SYS_MMC_MAX_BLK_COUNT
#define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535