aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-sam9-l9260.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/board-sam9-l9260.c')
-rw-r--r--arch/arm/mach-at91/board-sam9-l9260.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/board-sam9-l9260.c b/arch/arm/mach-at91/board-sam9-l9260.c
index cdd21f2595d2..ef982f8f71c0 100644
--- a/arch/arm/mach-at91/board-sam9-l9260.c
+++ b/arch/arm/mach-at91/board-sam9-l9260.c
@@ -165,11 +165,26 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
165 .vcc_pin = -EINVAL, 165 .vcc_pin = -EINVAL,
166}; 166};
167 167
168/*
169 * LEDs
170 */
171static struct gpio_led ek_leds[] = {
172 { /* D1 */
173 .name = "led1",
174 .gpio = AT91_PIN_PA9,
175 .active_low = 1,
176 .default_trigger = "heartbeat",
177 },
178 { /* D2 */
179 .name = "led2",
180 .gpio = AT91_PIN_PA6,
181 .active_low = 1,
182 .default_trigger = "timer",
183 }
184};
185
168static void __init ek_board_init(void) 186static void __init ek_board_init(void)
169{ 187{
170 /* Setup the LEDs */
171 at91_init_leds(AT91_PIN_PA9, AT91_PIN_PA6);
172
173 /* Serial */ 188 /* Serial */
174 /* DBGU on ttyS0. (Rx & Tx only) */ 189 /* DBGU on ttyS0. (Rx & Tx only) */
175 at91_register_uart(0, 0, 0); 190 at91_register_uart(0, 0, 0);
@@ -196,6 +211,8 @@ static void __init ek_board_init(void)
196 at91_add_device_mmc(0, &ek_mmc_data); 211 at91_add_device_mmc(0, &ek_mmc_data);
197 /* I2C */ 212 /* I2C */
198 at91_add_device_i2c(NULL, 0); 213 at91_add_device_i2c(NULL, 0);
214 /* LEDs */
215 at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
199} 216}
200 217
201MACHINE_START(SAM9_L9260, "Olimex SAM9-L9260") 218MACHINE_START(SAM9_L9260, "Olimex SAM9-L9260")