Browse Source

add support for AVR32 MMC controller

Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Mario Haustein 7 years ago
parent
commit
f4e1a3403d

+ 12 - 0
target/avr32/grasshopper/patches/4.7.3/0002-grasshopper-enable-mmc.patch

@@ -0,0 +1,12 @@
+diff -Naur linux-4.7.3/arch/avr32/boards/grasshopper/setup.c linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/setup.c
+--- linux-4.7.3/arch/avr32/boards/grasshopper/setup.c	2016-09-14 10:48:53.403638569 +0200
++++ linux-4.7.3.grasshopper/arch/avr32/boards/grasshopper/setup.c	2016-09-14 11:26:49.572343447 +0200
+@@ -169,7 +169,7 @@
+ #endif
+ 
+ #ifdef CONFIG_MMC_ATMELMCI
+-//    at32_add_device_mci(0, &mci0_data); /* MMC/SD */
++    at32_add_device_mci(0, &mci0_data); /* MMC/SD */
+ #endif
+ 
+ //    printk("registering penirq gpio-pin...\n");

+ 15 - 0
target/linux/config/Config.in.block

@@ -441,6 +441,21 @@ config ADK_KERNEL_MMC_SUNXI
 	default y if ADK_TARGET_SYSTEM_BANANA_PRO
 	default n
 
+config ADK_KERNEL_MMC_ATMELMCI
+	bool "Atmel SD/MMC Driver (Multimedia Card Interface)"
+	select ADK_KERNEL_BLK_DEV
+	select ADK_KERNEL_MMC
+	select ADK_KERNEL_MMC_BLOCK
+	select ADK_KERNEL_MMC_BLOCK_BOUNCE
+	select ADK_KERNEL_MMC_SDHCI
+	select ADK_KERNEL_MMC_SDHCI_IO_ACCESSORS
+	select ADK_KERNEL_MMC_SDHCI_PLTFM
+	depends on ADK_TARGET_CPU_AVR32
+	default n
+	help
+	  Atmel Multimedia Card Interface driver for AT32
+	  and AT91 plattforms.
+
 endmenu
 
 menu "Block driver support"