]> err.no Git - linux-2.6/commitdiff
[ARM] 4364/1: AT91: LEDS on AT91SAM9261-EK
authorAndrew Victor <andrew@sanpeople.com>
Wed, 9 May 2007 10:42:53 +0000 (11:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 May 2007 16:20:21 +0000 (17:20 +0100)
Attached you can find a patch needed to make the LEDS for 'CPU-Idle'
and 'Timer' work on the AT91SAM9261-EK board. The kernel configuration
options are already there, but the implementation is not available.

Signed-off-by: Remy Bohmer <l.pinguin@gmail.com>
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/Makefile
arch/arm/mach-at91/board-sam9261ek.c

index a412ae18a4213e5b4e065b637caee6666c3751c3..cd1bc541f28e93b799500486214ad63686e5e0b4 100644 (file)
@@ -39,6 +39,7 @@ obj-$(CONFIG_MACH_AT91SAM9263EK) += board-sam9263ek.o
 # LEDs support
 led-$(CONFIG_ARCH_AT91RM9200DK)        += leds.o
 led-$(CONFIG_MACH_AT91RM9200EK)        += leds.o
+led-$(CONFIG_MACH_AT91SAM9261EK)+= leds.o
 led-$(CONFIG_MACH_CSB337)      += leds.o
 led-$(CONFIG_MACH_CSB637)      += leds.o
 led-$(CONFIG_MACH_KB9200)      += leds.o
index bcf71536cc6db2931bf8a220548146ad1b2806c5..1f0c8a400b3a6c219dc981d9b84fba471559bbd9 100644 (file)
@@ -60,6 +60,9 @@ static void __init ek_map_io(void)
        /* Initialize processor: 18.432 MHz crystal */
        at91sam9261_initialize(18432000);
 
+       /* Setup the LEDs */
+       at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14);
+
        /* Setup the serial ports and console */
        at91_init_serial(&ek_uart_config);
 }