Skip to contentSkip to conversation

6/7 AU1100 MMC support

PATCH New Rodolfo Giometti 1 participant 1 message Aug 9, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 6/7 AU1100 MMC support

Support for AU1100 (PIO mode) added.

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    [email protected]
Linux Device Driver                             [email protected]
Embedded Systems                     		[email protected]
UNIX programming                     phone:     +39 349 2432127
arch/mips/au1000/common/platform.c +19 -1
index a77be4f..79cb2cf 100644
@@ -305,7 +305,9 @@ static struct platform_device au1200_ide
 	.num_resources = ARRAY_SIZE(au1200_ide0_resources),
 	.resource	= au1200_ide0_resources,
 };
+#endif /* #ifdef CONFIG_SOC_AU1200 */
 
+#if defined(CONFIG_SOC_AU1100) || defined(CONFIG_SOC_AU1200) 
 static u64 au1xxx_mmc_dmamask =  ~(u32)0;
 
 static struct resource au1xxx_mmc0_resources[] = {
@@ -317,16 +319,23 @@ static struct resource au1xxx_mmc0_resou
 	},
 	[1] = {
 		.name		= "mmc-irq",
+#if defined(CONFIG_SOC_AU1100)
+		.start          = AU1100_SD_INT,
+		.end            = AU1100_SD_INT,
+#else /* AU1200 */
 		.start          = AU1200_SD_INT,
 		.end            = AU1200_SD_INT,
+#endif
 		.flags          = IORESOURCE_IRQ,
 	},
+#if defined(CONFIG_SOC_AU1200)
 	[2] = {
 		.name		= "mmc-dma",
 		.start          = DSCR_CMD0_SDMS_TX0,
 		.end            = DSCR_CMD0_SDMS_RX0,
 		.flags          = IORESOURCE_DMA,
 	},
+#endif
 };
 
 static struct platform_device au1xxx_mmc0_device = {
@@ -349,16 +358,23 @@ static struct resource au1xxx_mmc1_resou
 	},
 	[1] = {
 		.name		= "mmc-irq",
+#if defined(CONFIG_SOC_AU1100)
+		.start          = AU1100_SD_INT,
+		.end            = AU1100_SD_INT,
+#else /* AU1200 */
 		.start          = AU1200_SD_INT,
 		.end            = AU1200_SD_INT,
+#endif
 		.flags          = IORESOURCE_IRQ,
 	},
+#if defined(CONFIG_SOC_AU1200)
 	[2] = {
 		.name		= "mmc-dma",
 		.start          = DSCR_CMD0_SDMS_TX1,
 		.end            = DSCR_CMD0_SDMS_RX1,
 		.flags          = IORESOURCE_DMA,
 	},
+#endif
 };
 
 static struct platform_device au1xxx_mmc1_device = {
@@ -371,7 +387,7 @@ static struct platform_device au1xxx_mmc
 	.num_resources  = ARRAY_SIZE(au1xxx_mmc1_resources),
 	.resource       = au1xxx_mmc1_resources,
 };
-#endif /* #ifdef CONFIG_SOC_AU1200 */
+#endif /* defined(CONFIG_SOC_AU1100) || defined(CONFIG_SOC_AU1200) */
 
 static struct platform_device au1x00_pcmcia_device = {
 	.name 		= "au1x00-pcmcia",
@@ -450,6 +466,8 @@ #ifdef CONFIG_SOC_AU1200
 	&au1xxx_usb_otg_device,
 	&au1200_lcd_device,
 	&au1200_ide0_device,
+#endif
+#if defined(CONFIG_SOC_AU1100) || defined(CONFIG_SOC_AU1200)
 	&au1xxx_mmc0_device,
 	&au1xxx_mmc1_device,
 #endif
drivers/mmc/Kconfig +1 -1
index 45bcf09..d7c455c 100644
@@ -84,7 +84,7 @@ config MMC_WBSD
 
 config MMC_AU1X
 	tristate "Alchemy AU1XX0 MMC Card Interface support"
-	depends on MMC && SOC_AU1200
+	depends on MMC && (SOC_AU1100 || SOC_AU1200)
 	help
 	  This selects the AMD Alchemy(R) Multimedia card interface.
 	  If you have a Alchemy platform with a MMC slot, say Y or M here.
drivers/mmc/au1xmmc.c +53 -9

196 lines not on this page · raw message