Changeset 4184
- Timestamp:
- 03/09/08 12:44:23 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/src/target/kernel/2.6.24.x/patches/gta02-leds.patch
r3649 r4184 1 Index: linux-2.6 /drivers/leds/Kconfig1 Index: linux-2.6.24/drivers/leds/Kconfig 2 2 =================================================================== 3 --- linux-2.6. orig/drivers/leds/Kconfig4 +++ linux-2.6 /drivers/leds/Kconfig3 --- linux-2.6.24.orig/drivers/leds/Kconfig 4 +++ linux-2.6.24/drivers/leds/Kconfig 5 5 @@ -120,6 +120,12 @@ 6 6 help … … 16 16 17 17 config LEDS_TRIGGERS 18 Index: linux-2.6 /drivers/leds/Makefile18 Index: linux-2.6.24/drivers/leds/Makefile 19 19 =================================================================== 20 --- linux-2.6. orig/drivers/leds/Makefile21 +++ linux-2.6 /drivers/leds/Makefile20 --- linux-2.6.24.orig/drivers/leds/Makefile 21 +++ linux-2.6.24/drivers/leds/Makefile 22 22 @@ -20,6 +20,7 @@ 23 23 obj-$(CONFIG_LEDS_GPIO) += leds-gpio.o … … 28 28 # LED Triggers 29 29 obj-$(CONFIG_LEDS_TRIGGER_TIMER) += ledtrig-timer.o 30 Index: linux-2.6 /drivers/leds/leds-neo1973-gta02.c30 Index: linux-2.6.24/drivers/leds/leds-neo1973-gta02.c 31 31 =================================================================== 32 32 --- /dev/null 33 +++ linux-2.6 /drivers/leds/leds-neo1973-gta02.c34 @@ -0,0 +1,2 16 @@33 +++ linux-2.6.24/drivers/leds/leds-neo1973-gta02.c 34 @@ -0,0 +1,226 @@ 35 35 +/* 36 36 + * LED driver for the FIC Neo1973 GTA02 GSM phone … … 185 185 + } 186 186 + 187 + if (lp->has_pwm) { 188 + lp->pwm.prescaler = 0; 189 + lp->pwm.divider = S3C2410_TCFG1_MUX3_DIV8; 190 + lp->pwm.counter = COUNTER; 191 + lp->pwm.comparer = COUNTER; 192 + s3c2410_pwm_enable(&lp->pwm); 193 + s3c2410_pwm_start(&lp->pwm); 187 + lp->pwm.prescaler = 0; 188 + lp->pwm.divider = S3C2410_TCFG1_MUX3_DIV8; 189 + lp->pwm.counter = COUNTER; 190 + lp->pwm.comparer = COUNTER; 191 + s3c2410_pwm_enable(&lp->pwm); 192 + s3c2410_pwm_start(&lp->pwm); 193 + 194 + switch (lp->gpio) { 195 + case S3C2410_GPB0: 196 + case S3C2410_GPB1: 197 + case S3C2410_GPB2: 198 + lp->has_pwm = 0; 199 + s3c2410_gpio_cfgpin(lp->gpio, S3C2410_GPIO_OUTPUT); 200 + s3c2410_gpio_setpin(lp->gpio, 0); 201 + break; 202 + default: 203 + break; 194 204 + } 195 205 +
Note: See TracChangeset
for help on using the changeset viewer.
