diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-27 22:13:39 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-06 12:07:36 -0700 |
commit | 91785f70b9b7ebfd1a2da4772a8268b36f58fa3d (patch) | |
tree | 648c8dd82f5d7f8a10b0083a631b6c8dfb56d440 /include/mmc.h | |
parent | 7b02bf3c7dc74ab29e5c5f826cc0cfd141e41f2d (diff) |
x86: mmc: Move common FSP functions into a common file
Since these board functions seem to be the same for all boards which use
FSP, move them into a common file. We can adjust this later if future FSPs
need more flexibility.
This creates a generic PCI MMC device.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 09101e2c87a..56d97bbdcf5 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -438,6 +438,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 |