aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commitfac7f7f84f3771c5247c7fdee825c092077984f5 (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch
parenta34279723a9cf0796f9261f2fb90bea18cd95711 (diff)
downloadmaster-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.gz
master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.bz2
master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.zip
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch
new file mode 100644
index 0000000000..a4f1074b03
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1147-add-force-backlight-up-on-resume.patch.patch
@@ -0,0 +1,34 @@
+From 56ba558ac343476a19a360fe139a6896bfc0b9e3 Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Tue, 13 May 2008 18:53:39 +0100
+Subject: [PATCH] add-force-backlight-up-on-resume.patch
+
+The backlight status is restored during resume action, if it was
+off then it resumes like that.
+
+This patch forces it on after resume.
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/i2c/chips/pcf50633.c | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
+index b7b4921..dc4ea0a 100644
+--- a/drivers/i2c/chips/pcf50633.c
++++ b/drivers/i2c/chips/pcf50633.c
+@@ -1952,8 +1952,9 @@ static int pcf50633_suspend(struct device *dev, pm_message_t state)
+
+ void pcf50633_backlight_resume(struct pcf50633_data *pcf)
+ {
+- __reg_write(pcf, PCF50633_REG_LEDOUT, pcf->standby_regs.ledout);
+- __reg_write(pcf, PCF50633_REG_LEDENA, pcf->standby_regs.ledena);
++ /* we force the backlight on in fact */
++ __reg_write(pcf, PCF50633_REG_LEDOUT, 0x3f);
++ __reg_write(pcf, PCF50633_REG_LEDENA, 0x21);
+ __reg_write(pcf, PCF50633_REG_LEDDIM, pcf->standby_regs.leddim);
+ }
+ EXPORT_SYMBOL_GPL(pcf50633_backlight_resume);
+--
+1.5.6.5
+