diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-01-23 09:32:17 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 15:00:32 +0000 |
commit | 1b41bdf68a72c1fd506ee3dbfbf954fd2eaef75c (patch) | |
tree | 163781e6480984fe948a5e22e826f684e0d4ab7d /arch/arm/mach-at91/board-dk.c | |
parent | 2743f0c1dcca54d6c80b0de1273b3f4e90051a85 (diff) | |
download | linux-1b41bdf68a72c1fd506ee3dbfbf954fd2eaef75c.tar.gz linux-1b41bdf68a72c1fd506ee3dbfbf954fd2eaef75c.tar.bz2 linux-1b41bdf68a72c1fd506ee3dbfbf954fd2eaef75c.zip |
[ARM] 4761/1: [AT91] Board-support for NEW_LEDs
Add NEW_LEDs support for the following boards:
- Cogent CSB337
- Atmel AT91RM9200-DK
- Atmel AT91RM9200-EK
- Atmel AT91SAM9263-EK
Mostly based on patch from David Brownell.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-dk.c')
-rw-r--r-- | arch/arm/mach-at91/board-dk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-dk.c b/arch/arm/mach-at91/board-dk.c index 40c9e4331706..0a897efeba8e 100644 --- a/arch/arm/mach-at91/board-dk.c +++ b/arch/arm/mach-at91/board-dk.c @@ -183,6 +183,14 @@ static struct platform_device dk_flash = { .num_resources = 1, }; +static struct gpio_led dk_leds[] = { + { + .name = "led0", + .gpio = AT91_PIN_PB2, + .active_low = 1, + .default_trigger = "heartbeat", + } +}; static void __init dk_board_init(void) { @@ -213,6 +221,8 @@ static void __init dk_board_init(void) at91_add_device_nand(&dk_nand_data); /* NOR Flash */ platform_device_register(&dk_flash); + /* LEDs */ + at91_gpio_leds(dk_leds, ARRAY_SIZE(dk_leds)); /* VGA */ // dk_add_device_video(); } |