Skip to contentSkip to conversation

Alcor Micro AU6601

RFC PATCH New Oleksij Rempel 1 participant 1 message Apr 16, 2014 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Alcor Micro AU6601

Hello all,

in attachment is current version of driver for Alcor Micro AU6601 which is based on my RE work. In current state it works with most cards i have except of "MMC mobile 1GB Kingstone", this card fail to start if controller set to 4bit mode. All other cards work with 4bit mode without visible problems.
Right now, max speed for all cards is 1.5MB/s. Speed of windows driver with, for example "Kingstone 2GB 50X elite pro" cards, is 20MB/s.

It looks like most of the time driver is loosing on reading PIO. For example 512 byte block will take 350usec. Is it possible to optimise it?

Other question. What is the difference between
MMC_POWER_UP and MMC_POWER_ON? One of register has fallowing behaviour:
+/*
+ * - 0x8 only Vcc is on
+ * - 0x1 Vcc and other pins are on
+ * - 0x1 | 0x8 like 0x1, but DAT2 is off
+ */
will it this case MMC_POWER_UP be 0x8 and MMC_POWER_ON 0x1?

Signature · 2 lines
Regards,
Oleksij
drivers/mmc/host/Kconfig +8 -0
index 1384f67..ed83644 100644
@@ -315,6 +315,14 @@ config MMC_WBSD
 
 	  If unsure, say N.
 
+config MMC_AU6601
+	tristate "Alcor Micro AU6601"
+	help
+	  This selects the Alcor Micro Multimedia card interface.
+
+	  If unsure, say N.
+
+
 config MMC_AU1X
 	tristate "Alchemy AU1XX0 MMC Card Interface support"
 	depends on MIPS_ALCHEMY
drivers/mmc/host/Makefile +1 -0
index 3483b6b..484bca8 100644
@@ -18,6 +18,7 @@ obj-$(CONFIG_MMC_SDHCI_SIRF)   	+= sdhci-sirf.o
 obj-$(CONFIG_MMC_SDHCI_SPEAR)	+= sdhci-spear.o
 obj-$(CONFIG_MMC_WBSD)		+= wbsd.o
 obj-$(CONFIG_MMC_AU1X)		+= au1xmmc.o
+obj-$(CONFIG_MMC_AU6601)	+= au6601.o
 obj-$(CONFIG_MMC_OMAP)		+= omap.o
 obj-$(CONFIG_MMC_OMAP_HS)	+= omap_hsmmc.o
 obj-$(CONFIG_MMC_ATMELMCI)	+= atmel-mci.o
drivers/mmc/host/au6601.c new file +1246 -0

1,246 lines not on this page · raw message