[PATCH]: 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 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
--- linux-2.6.21.orig/arch/arm/mach-at91/board-sam9261ek.c 2007-05-04 15:51:34.000000000 +0200
+++ linux-2.6.21/arch/arm/mach-at91/board-sam9261ek.c 2007-05-07 16:45:04.000000000 +0200
@@ -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);
}
diff -ruN linux-2.6.21.orig/arch/arm/mach-at91/Makefile linux-2.6.21/arch/arm/mach-at91/Makefile
--- linux-2.6.21.orig/arch/arm/mach-at91/Makefile 2007-05-04 15:51:34.000000000 +0200
+++ linux-2.6.21/arch/arm/mach-at91/Makefile 2007-05-07 17:34:21.000000000 +0200
@@ -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


Relevant Pages

  • Re: [PATCH] drivers: PMC MSP71xx LED driver
    ... Your patch does not seem to use the Linux LED API, ... control of the LEDs from kernel and non-kernel code. ... > + * Sets the given mode value to the given led register. ...
    (Linux-Kernel)
  • [PATCH/LEDS] - Add support for leds on the HP Jornada 6xx series
    ... The HP Jornada 6xx series have simple leds thats able to produce green or red light. ... This patch enables the leds to be used by the kernel and/or userland. ... I've confirmed that this patch compiles for me and that it works as expected on jornada. ...
    (Linux-Kernel)
  • Re: [PATCH] leds: make sure led->trigger is valid before calling trigger->activate
    ... Subject: [PATCH] leds: make sure led->trigger is valid before calling trigger->activate ... I seem to remember actively making the code work the way it does when I ... I have no objections to the change and will probably queue it ...
    (Linux-Kernel)
  • Re: [PATCH] drivers: PMC MSP71xx LED driver
    ... Patch to add LED driver for the PMC-Sierra MSP71xx devices. ... * Sets the given mode value to the given led register. ... value from the + * global shared memory registers for leds. ... * as will kicking this watchdog with a watchdogtimeout value of 0. ...
    (Linux-Kernel)
  • Re: best way to handle LEDs
    ... might look at some of the old versions of the patch on my web site. ... the implementation of the arm led interface for collie.... ... I then grew the led code to support more than four leds, multi color leds, ...
    (Linux-Kernel)