]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/mmc.h
x86: mmc: Move common FSP functions into a common file
[karo-tx-uboot.git] / include / mmc.h
index c0bcfb90762dc42fada8047eb0a34b3d50bed5ce..ab1d41be167bd973fbc1c1e7c8f88e82d0b95f33 100644 (file)
@@ -439,6 +439,20 @@ int board_mmc_init(bd_t *bis);
 int cpu_mmc_init(bd_t *bis);
 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
 
+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
+ * @num_ids:           Number of elements in @mmc_supported
+ */
+int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported,
+                int num_ids);
+
 /* 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