Skip to contentSkip to conversation

: Make LEDS work on evaluation board AT91SAM9261-EK

PATCH New Remy Bohmer 1 participant 1 message May 8, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Make LEDS work on evaluation board AT91SAM9261-EK

Hello Andrew,

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. This patch fixes this.

Can you please apply this patch to the kernel mainline?

Kind Regards,

Remy Bohmer

arch/arm/mach-at91/board-sam9261ek.c +3 -0
diff -ruN linux-2.6.21.orig/arch/arm/mach-at91/board-sam9261ek.c linux-2.6.21/arch/arm/mach-at91/board-sam9261ek.c
@@ -59,6 +59,9 @@
 	/* 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);
 }
arch/arm/mach-at91/Makefile +1 -0
diff -ruN linux-2.6.21.orig/arch/arm/mach-at91/Makefile linux-2.6.21/arch/arm/mach-at91/Makefile
@@ -38,6 +39,7 @@
 # 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