[PATCH 3/7] Updated patchset, Janitor and GPIO GPB/LED work

Holger Freyther zecke at openmoko.org
Thu Apr 10 05:32:49 CEST 2008

Currently only GPB0, GPB1, GPB2 are used for the LEDs, the addition of GPB3 is 
purely for the symmetry with the above code.

From 29eb3c9624353427829990956e2136804727df5e Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke at openmoko.org>
Date: Wed, 9 Apr 2008 15:11:58 +0200
Subject: [PATCH] [leds] We would enable PWM for all four timers, disable it 
for all four as well

Currently we do not use the PWM code to drive the LEDS. We have enabled the 
for four timer sources but disable it only for three, fix that up.

Signed-Off-By: Holger Freyther <zecke at openmoko.org>
 drivers/leds/leds-neo1973-gta02.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-neo1973-gta02.c 
index 8678670..fbb62c4 100644
--- a/drivers/leds/leds-neo1973-gta02.c
+++ b/drivers/leds/leds-neo1973-gta02.c
@@ -161,6 +161,7 @@ static int __init gta02led_probe(struct platform_device 
 		case S3C2410_GPB0:
 		case S3C2410_GPB1:
 		case S3C2410_GPB2:
+		case S3C2410_GPB3:
 			lp->has_pwm = 0;
 			s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPIO_OUTPUT);
 			s3c2410_gpio_setpin(lp->gpio, 0);

More information about the openmoko-kernel mailing list