diff options
author | Bill Gatliff <bgat@billgatliff.com> | 2008-04-07 21:57:03 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-10 09:59:58 -0400 |
commit | ca1544790244b209e98351d365729061eaca213d (patch) | |
tree | 710be27c06aea2bb6f959eb8ce609c300ec20dc5 /arch/arm/mach-at91 | |
parent | 952c855fc7a88610940d2438072884d64dc9cefb (diff) |
[ARM] 4938/1: [CSB637] Convert heartbeat LED to gpio-leds
Converts the D1/PB2 LED to use the gpio-leds API and heartbeat trigger.
Signed-off-by: Bill Gatliff <bgat@billgatliff.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/board-csb637.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/board-csb637.c b/arch/arm/mach-at91/board-csb637.c index 26cda4301674..419fd19b620b 100644 --- a/arch/arm/mach-at91/board-csb637.c +++ b/arch/arm/mach-at91/board-csb637.c | |||
@@ -45,9 +45,6 @@ static void __init csb637_map_io(void) | |||
45 | /* Initialize processor: 3.6864 MHz crystal */ | 45 | /* Initialize processor: 3.6864 MHz crystal */ |
46 | at91rm9200_initialize(3686400, AT91RM9200_BGA); | 46 | at91rm9200_initialize(3686400, AT91RM9200_BGA); |
47 | 47 | ||
48 | /* Setup the LEDs */ | ||
49 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | ||
50 | |||
51 | /* DBGU on ttyS0 */ | 48 | /* DBGU on ttyS0 */ |
52 | at91_register_uart(0, 0, 0); | 49 | at91_register_uart(0, 0, 0); |
53 | 50 | ||
@@ -110,8 +107,19 @@ static struct platform_device csb_flash = { | |||
110 | .num_resources = ARRAY_SIZE(csb_flash_resources), | 107 | .num_resources = ARRAY_SIZE(csb_flash_resources), |
111 | }; | 108 | }; |
112 | 109 | ||
110 | static struct gpio_led csb_leds[] = { | ||
111 | { /* "d1", red */ | ||
112 | .name = "d1", | ||
113 | .gpio = AT91_PIN_PB2, | ||
114 | .active_low = 1, | ||
115 | .default_trigger = "heartbeat", | ||
116 | }, | ||
117 | }; | ||
118 | |||
113 | static void __init csb637_board_init(void) | 119 | static void __init csb637_board_init(void) |
114 | { | 120 | { |
121 | /* LED(s) */ | ||
122 | at91_gpio_leds(csb_leds, ARRAY_SIZE(csb_leds)); | ||
115 | /* Serial */ | 123 | /* Serial */ |
116 | at91_add_device_serial(); | 124 | at91_add_device_serial(); |
117 | /* Ethernet */ | 125 | /* Ethernet */ |