aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-csb337.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/board-csb337.c')
-rw-r--r--arch/arm/mach-at91/board-csb337.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c
index 51cb3c8cc601..0e2a11fc5bbd 100644
--- a/arch/arm/mach-at91/board-csb337.c
+++ b/arch/arm/mach-at91/board-csb337.c
@@ -215,6 +215,28 @@ static void __init csb300_add_device_buttons(void)
215static void __init csb300_add_device_buttons(void) {} 215static void __init csb300_add_device_buttons(void) {}
216#endif 216#endif
217 217
218static struct gpio_led csb_leds[] = {
219 { /* "led0", yellow */
220 .name = "led0",
221 .gpio = AT91_PIN_PB2,
222 .active_low = 1,
223 .default_trigger = "heartbeat",
224 },
225 { /* "led1", green */
226 .name = "led1",
227 .gpio = AT91_PIN_PB1,
228 .active_low = 1,
229 .default_trigger = "mmc0",
230 },
231 { /* "led2", yellow */
232 .name = "led2",
233 .gpio = AT91_PIN_PB0,
234 .active_low = 1,
235 .default_trigger = "ide-disk",
236 },
237};
238
239
218static void __init csb337_board_init(void) 240static void __init csb337_board_init(void)
219{ 241{
220 /* Serial */ 242 /* Serial */
@@ -236,6 +258,8 @@ static void __init csb337_board_init(void)
236 at91_add_device_mmc(0, &csb337_mmc_data); 258 at91_add_device_mmc(0, &csb337_mmc_data);
237 /* NOR flash */ 259 /* NOR flash */
238 platform_device_register(&csb_flash); 260 platform_device_register(&csb_flash);
261 /* LEDs */
262 at91_gpio_leds(csb_leds, ARRAY_SIZE(csb_leds));
239 /* Switches on CSB300 */ 263 /* Switches on CSB300 */
240 csb300_add_device_buttons(); 264 csb300_add_device_buttons();
241} 265}