[PATCH 8/10] deadbat-gta02v5-noled.patch

Werner Almesberger werner at openmoko.org
Tue Jul 15 13:04:22 CEST 2008


The LEDs of GTA02v5 draw an excessive amount of current, which can sometimes
push us out of our current budget while running from 100mA. This patch turns
the blinking LED off if we're on GTA02v5.

Signed-off-by: Werner Almesberger <werner at openmoko.org>

Index: u-boot/board/neo1973/gta02/gta02.c
===================================================================
--- u-boot.orig/board/neo1973/gta02/gta02.c	2008-07-14 21:28:04.000000000 -0300
+++ u-boot/board/neo1973/gta02/gta02.c	2008-07-14 21:31:05.000000000 -0300
@@ -398,8 +398,14 @@
 		if (neo1973_new_second())
 			seconds++;
 
-		/* blink the AUX LED */
-		neo1973_led(GTA02_LED_AUX_RED, !seconds || (seconds & 1));
+		/*
+		 * Blink the AUX LED, unless it's broken (which is the case in
+		 * GTA02v5 it is) and draws excessive current, which we just
+		 * can't afford in this delicate situation.
+		 */
+		if (gta02_revision > 5)
+			neo1973_led(GTA02_LED_AUX_RED,
+			    !seconds || (seconds & 1));
 	}
 
 	/* switch off the AUX LED */




More information about the openmoko-kernel mailing list