diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
commit | 845092569c227454f28d77e647d386ab7cc1419f (patch) | |
tree | efab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch | |
parent | d565bb20de4a9dec01f2f4c0f62be55eb61435a9 (diff) | |
download | master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.tar.gz master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.tar.bz2 master-187ad058-845092569c227454f28d77e647d386ab7cc1419f.zip |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch b/target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch new file mode 100755 index 0000000000..3e1e2128a3 --- /dev/null +++ b/target/linux/s3c24xx/patches/0085-use-gpio-control-leds.patch @@ -0,0 +1,51 @@ +From 39f011b7788caa6800c5779eeb51f1877de9cfc4 Mon Sep 17 00:00:00 2001 +From: Willie <willie_chen@openmoko.com> +Date: Fri, 25 Jul 2008 23:06:01 +0100 +Subject: [PATCH] use gpio control leds + +--- + drivers/leds/leds-neo1973-gta02.c | 9 ++++----- + 1 files changed, 4 insertions(+), 5 deletions(-) + +diff --git a/drivers/leds/leds-neo1973-gta02.c b/drivers/leds/leds-neo1973-gta02.c +index bf1d540..e442e48 100644 +--- a/drivers/leds/leds-neo1973-gta02.c ++++ b/drivers/leds/leds-neo1973-gta02.c +@@ -127,22 +127,22 @@ static int __init gta02led_probe(struct platform_device *pdev) + + switch (lp->gpio) { + case S3C2410_GPB0: +- lp->has_pwm = 1; ++ lp->has_pwm = 0; + lp->pwm.timerid = PWM0; + s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB0_TOUT0); + break; + case S3C2410_GPB1: +- lp->has_pwm = 1; ++ lp->has_pwm = 0; + lp->pwm.timerid = PWM1; + s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB1_TOUT1); + break; + case S3C2410_GPB2: +- lp->has_pwm = 1; ++ lp->has_pwm = 0; + lp->pwm.timerid = PWM2; + s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB2_TOUT2); + break; + case S3C2410_GPB3: +- lp->has_pwm = 1; ++ lp->has_pwm = 0; + lp->pwm.timerid = PWM3; + s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPB3_TOUT3); + break; +@@ -167,7 +167,6 @@ static int __init gta02led_probe(struct platform_device *pdev) + break; + default: + break; +- } + + mutex_init(&lp->mutex); + rc = led_classdev_register(&pdev->dev, &lp->cdev); +-- +1.5.6.3 + |