summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.18/atstk1000-add-platform-data-for-mmc.patch
blob: ed9e0f6c8ce683e08d18d369ea235e79bd84fb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: linux-2.6.18/arch/avr32/boards/atstk1000/atstk1002.c
===================================================================
--- linux-2.6.18.orig/arch/avr32/boards/atstk1000/atstk1002.c	2006-12-20 12:25:25.000000000 +0100
+++ linux-2.6.18/arch/avr32/boards/atstk1000/atstk1002.c	2006-12-20 12:26:09.000000000 +0100
@@ -33,6 +33,11 @@
 	},
 };
 
+static struct mmci_platform_data __initdata mmci0_data = {
+		.detect_pin	= GPIO_PIO_NONE,
+		.wp_pin		= GPIO_PIO_NONE,
+};
+
 static int __init parse_tag_ethernet(struct tag *tag)
 {
 	int i;
@@ -72,7 +77,7 @@
 
 	spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));
 
-	at32_add_device_mmci(0);
+	at32_add_device_mmci(0, &mmci0_data);
 	at32_add_device_spi(0);
 	at32_add_device_twi(0);
 	at32_add_device_usb(0);