| 
					
				 | 
			
			
				@@ -214,3 +214,70 @@ static void __init ek_add_device_mmc(void) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		ek_mmc_data.slot[0].bus_width = 4; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		ek_mmc_data.slot[0].detect_pin = AT91_PIN_PC2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		ek_mmc_data.slot[0].wp_pin = -1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	at91_add_device_mci(0, &ek_mmc_data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * LEDs 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct gpio_led ek_leds[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{	/* "bottom" led, green, userled1 to be defined */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name			= "ds5", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.gpio			= AT91_PIN_PA6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.active_low		= 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.default_trigger	= "none", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{	/* "power" led, yellow */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name			= "ds1", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.gpio			= AT91_PIN_PA9, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.default_trigger	= "heartbeat", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static void __init ek_add_device_gpio_leds(void) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	if (ek_have_2mmc()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ek_leds[0].gpio = AT91_PIN_PB8; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ek_leds[1].gpio = AT91_PIN_PB9; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * GPIO Buttons 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct gpio_keys_button ek_buttons[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.gpio		= AT91_PIN_PA30, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.code		= BTN_3, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.desc		= "Button 3", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.active_low	= 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.wakeup		= 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.gpio		= AT91_PIN_PA31, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.code		= BTN_4, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.desc		= "Button 4", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.active_low	= 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.wakeup		= 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct gpio_keys_platform_data ek_button_data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.buttons	= ek_buttons, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.nbuttons	= ARRAY_SIZE(ek_buttons), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct platform_device ek_button_device = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.name		= "gpio-keys", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.id		= -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.num_resources	= 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.dev		= { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.platform_data	= &ek_button_data, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static void __init ek_add_device_buttons(void) 
			 |