dm/mmc: gen_atmel_mci: Add driver model support for mci
Subsystems (2)
PATCH v5 1/1 dm/mmc: gen_atmel_mci: Add driver model support for mci
Add the driver model support for Atmel mci while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not.
---
Changes in v5:
- Add the Reviewed-by tag.
- Rebase
Changes in v4:
- Remove unneeded #ifdef CONFIG_DM_MMC.
Changes in v3:
- Use unified #ifdef CONFIG_DM_MMC #else...#endif, instead of #ifndef CONFIG_DM_MMC #else...#endif.
Changes in v2:
- Change the return type of atmel_mci_setup_cfg() from int to void.
- Add comments on the features depends on the IP version.
- Add the error handle path of clock.
- Fix the missing use priv->bus_clk_rate.
- Return from mmc_bind() directly, instead of checking its return.
drivers/mmc/Kconfig | 9 +++ drivers/mmc/gen_atmel_mci.c | 161 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 169 insertions(+), 1 deletion(-)
drivers/mmc/Kconfig +9 -0
@@ -36,6 +36,15 @@ config DM_MMC_OPS if MMC +config GENERIC_ATMEL_MCI + bool "Atmel Multimedia Card Interface support" + depends on DM_MMC && BLK && DM_MMC_OPS && ARCH_AT91 + help + This enables support for Atmel High Speed Multimedia Card Interface + (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3, + the SD Memory Card Specification V2.0, the SDIO V2.0 specification + and CE-ATA V1.1. + config SPL_MMC_TINY bool "Tiny MMC framework in SPL" help
drivers/mmc/gen_atmel_mci.c +160 -1
242 lines not on this page · raw message
Signature · 1 line
2.11.0