Skip to contentSkip to conversation

dm/mmc: gen_atmel_mci: Add driver model support for mci

PATCH Superseded Wenyou Yang 1 participant 1 message Feb 3, 2017

Subsystems (2)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 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 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 | 162 +++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 170 insertions(+), 1 deletion(-)
drivers/mmc/Kconfig +9 -0
index c3462ab724..198aab8a26 100644
@@ -68,6 +68,15 @@ config ATMEL_SDHCI
 	  It is compliant with the SD Host Controller Standard V3.0
 	  specification.
 
+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 ROCKCHIP_DWMMC
 	bool "Rockchip SD/MMC controller support"
 	depends on DM_MMC && OF_CONTROL
drivers/mmc/gen_atmel_mci.c +161 -1

245 lines not on this page · raw message

Signature · 1 line
2.11.0