diff options
author | Simon Glass <sjg@chromium.org> | 2022-04-24 23:31:14 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-25 10:00:04 -0400 |
commit | b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839 (patch) | |
tree | 0519efa9d1848cf08c896534997757dc44c9c9dc /drivers/mmc/Makefile | |
parent | 31aefaf89a5b5b259244a2ca83862e8d172a03a9 (diff) | |
download | u-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.tar.gz u-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.tar.bz2 u-boot-b8aa463e9ba96e66fc24e0d7cd0e07e9bc7bc839.zip |
bootstd: mmc: Add a bootdev driver
Add a bootdev driver for MMC. It mostly just calls the bootdev helper
function.
Add a function to obtain the block device for an MMC controller.
Fix up the comment for mmc_get_blk_desc() while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/Makefile')
-rw-r--r-- | drivers/mmc/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile index 17ebc04203..9627509302 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile @@ -5,6 +5,11 @@ obj-y += mmc.o obj-$(CONFIG_$(SPL_)DM_MMC) += mmc-uclass.o + +ifdef CONFIG_$(SPL_TPL_)DM_MMC +obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += mmc_bootdev.o +endif + obj-$(CONFIG_$(SPL_)MMC_WRITE) += mmc_write.o obj-$(CONFIG_MMC_PWRSEQ) += mmc-pwrseq.o obj-$(CONFIG_MMC_SDHCI_ADMA_HELPERS) += sdhci-adma.o |