[adm5120] add USB drivers for the NFS-101U/WU profiles
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1096-fix-gpio-led-patch-still-pwm-t3.patch.patch
1 From 565f2987435711c4ac154e7cc12a03eedce2bfdb Mon Sep 17 00:00:00 2001
2 From: warmcat <andy@warmcat.com>
3 Date: Sun, 13 Apr 2008 07:25:50 +0100
4 Subject: [PATCH] fix-gpio-led-patch-still-pwm-t3.patch
5
6 Starting up all the PWMs seems to be needed for PWM3 operation
7 and FIQ / HDQ / VIB operation. But after starting, turn the
8 LEDs to GPIO-only.
9
10 Applies on top of Willie's patch
11
12 Signed-off-by: Andy Green <andy@openmoko.com>
13 ---
14 drivers/leds/leds-neo1973-gta02.c | 9 +++++----
15 1 files changed, 5 insertions(+), 4 deletions(-)
16
17 diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c
18 index e442e48..bf1d540 100644
19 --- a/drivers/leds/leds-neo1973-gta02.c
20 +++ b/drivers/leds/leds-neo1973-gta02.c
21 @@ -127,22 +127,22 @@ static int __init gta02led_probe(struct platform_device *pdev)
22
23 switch (lp->gpio) {
24 case S3C2410_GPB0:
25 - lp->has_pwm = 0;
26 + lp->has_pwm = 1;
27 lp->pwm.timerid = PWM0;
28 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB0_TOUT0);
29 break;
30 case S3C2410_GPB1:
31 - lp->has_pwm = 0;
32 + lp->has_pwm = 1;
33 lp->pwm.timerid = PWM1;
34 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB1_TOUT1);
35 break;
36 case S3C2410_GPB2:
37 - lp->has_pwm = 0;
38 + lp->has_pwm = 1;
39 lp->pwm.timerid = PWM2;
40 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB2_TOUT2);
41 break;
42 case S3C2410_GPB3:
43 - lp->has_pwm = 0;
44 + lp->has_pwm = 1;
45 lp->pwm.timerid = PWM3;
46 s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB3_TOUT3);
47 break;
48 @@ -167,6 +167,7 @@ static int __init gta02led_probe(struct platform_device *pdev)
49 break;
50 default:
51 break;
52 + }
53
54 mutex_init(&lp->mutex);
55 rc = led_classdev_register(&pdev->dev, &lp->cdev);
56 --
57 1.5.6.5
58
This page took 0.060938 seconds and 5 git commands to generate.