Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc2832a1 authored by Andrew Victor's avatar Andrew Victor Committed by Russell King
Browse files

[ARM] 3393/2: AT91RM9200 LED support



Patch from Andrew Victor

This patch adds support for the LED(s) on the AT91RM9200-based boards.

(This version of the patch can be applied before Patch 3392/1)

Signed-off-by: default avatarAndrew Victor <andrew@sanpeople.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent b2e6f755
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -16,11 +16,12 @@ obj-$(CONFIG_MACH_CSB637) += board-csb637.o
#obj-$(CONFIG_MACH_KB9200)	+= board-kb9202.o
#obj-$(CONFIG_MACH_KB9200)	+= board-kb9202.o


# LEDs support
# LEDs support
#led-$(CONFIG_ARCH_AT91RM9200DK)	+= leds.o
led-$(CONFIG_ARCH_AT91RM9200DK)	+= leds.o
#led-$(CONFIG_MACH_AT91RM9200EK)	+= leds.o
led-$(CONFIG_MACH_AT91RM9200EK)	+= leds.o
#led-$(CONFIG_MACH_CSB337)	+= leds.o
led-$(CONFIG_MACH_CSB337)	+= leds.o
#led-$(CONFIG_MACH_CSB637)	+= leds.o
led-$(CONFIG_MACH_CSB637)	+= leds.o
#led-$(CONFIG_MACH_KB9200)	+= leds.o
#led-$(CONFIG_MACH_KB9200)	+= leds.o
#led-$(CONFIG_MACH_KAFA)	+= leds.o
obj-$(CONFIG_LEDS) += $(led-y)
obj-$(CONFIG_LEDS) += $(led-y)


# VGA support
# VGA support
+3 −0
Original line number Original line Diff line number Diff line
@@ -67,6 +67,9 @@ static void __init csb337_map_io(void)
	/* Initialize clocks: 3.6864 MHz crystal */
	/* Initialize clocks: 3.6864 MHz crystal */
	at91_clock_init(3686400);
	at91_clock_init(3686400);


	/* Setup the LEDs */
	at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);

#ifdef CONFIG_SERIAL_AT91
#ifdef CONFIG_SERIAL_AT91
	at91_console_port = CSB337_SERIAL_CONSOLE;
	at91_console_port = CSB337_SERIAL_CONSOLE;
	memcpy(at91_serial_map, serial, sizeof(serial));
	memcpy(at91_serial_map, serial, sizeof(serial));
+3 −0
Original line number Original line Diff line number Diff line
@@ -67,6 +67,9 @@ static void __init csb637_map_io(void)
	/* Initialize clocks: 3.6864 MHz crystal */
	/* Initialize clocks: 3.6864 MHz crystal */
	at91_clock_init(3686400);
	at91_clock_init(3686400);


	/* Setup the LEDs */
	at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);

#ifdef CONFIG_SERIAL_AT91
#ifdef CONFIG_SERIAL_AT91
	at91_console_port = CSB637_SERIAL_CONSOLE;
	at91_console_port = CSB637_SERIAL_CONSOLE;
	memcpy(at91_serial_map, serial, sizeof(serial));
	memcpy(at91_serial_map, serial, sizeof(serial));
+3 −0
Original line number Original line Diff line number Diff line
@@ -70,6 +70,9 @@ static void __init dk_map_io(void)
	/* Initialize clocks: 18.432 MHz crystal */
	/* Initialize clocks: 18.432 MHz crystal */
	at91_clock_init(18432000);
	at91_clock_init(18432000);


	/* Setup the LEDs */
	at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);

#ifdef CONFIG_SERIAL_AT91
#ifdef CONFIG_SERIAL_AT91
	at91_console_port = DK_SERIAL_CONSOLE;
	at91_console_port = DK_SERIAL_CONSOLE;
	memcpy(at91_serial_map, serial, sizeof(serial));
	memcpy(at91_serial_map, serial, sizeof(serial));
+3 −0
Original line number Original line Diff line number Diff line
@@ -70,6 +70,9 @@ static void __init ek_map_io(void)
	/* Initialize clocks: 18.432 MHz crystal */
	/* Initialize clocks: 18.432 MHz crystal */
	at91_clock_init(18432000);
	at91_clock_init(18432000);


	/* Setup the LEDs */
	at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2);

#ifdef CONFIG_SERIAL_AT91
#ifdef CONFIG_SERIAL_AT91
	at91_console_port = EK_SERIAL_CONSOLE;
	at91_console_port = EK_SERIAL_CONSOLE;
	memcpy(at91_serial_map, serial, sizeof(serial));
	memcpy(at91_serial_map, serial, sizeof(serial));
Loading