mmc: add bus handler

Delegate protocol handling to "bus handlers". This allows the core to
just handle the task of arbitrating the bus. Initialisation and
pampering of cards is now done by the different bus handlers.

This design also allows MMC and SD (and later SDIO) to be more cleanly
separated, allowing easier maintenance.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
Pierre Ossman
2006-12-31 00:11:32 +01:00
parent b2670b1c6d
commit 7ea239d9e6
6 changed files with 1048 additions and 690 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ ifeq ($(CONFIG_MMC_DEBUG),y)
endif
obj-$(CONFIG_MMC) += mmc_core.o
mmc_core-y := core.o sysfs.o mmc_ops.o sd_ops.o
mmc_core-y := core.o sysfs.o mmc.o mmc_ops.o sd.o sd_ops.o