changed Makefile and profiles, added patches for kernel 2.6.24
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1147-add-force-backlight-up-on-resume.patch.patch
1 From 56ba558ac343476a19a360fe139a6896bfc0b9e3 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Tue, 13 May 2008 18:53:39 +0100
4 Subject: [PATCH] add-force-backlight-up-on-resume.patch
5
6 The backlight status is restored during resume action, if it was
7 off then it resumes like that.
8
9 This patch forces it on after resume.
10
11 Signed-off-by: Andy Green <andy@openmoko.com>
12 ---
13  drivers/i2c/chips/pcf50633.c |    5 +++--
14  1 files changed, 3 insertions(+), 2 deletions(-)
15
16 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
17 index b7b4921..dc4ea0a 100644
18 --- a/drivers/i2c/chips/pcf50633.c
19 +++ b/drivers/i2c/chips/pcf50633.c
20 @@ -1952,8 +1952,9 @@ static int pcf50633_suspend(struct device *dev, pm_message_t state)
21  
22  void pcf50633_backlight_resume(struct pcf50633_data *pcf)
23  {
24 -       __reg_write(pcf, PCF50633_REG_LEDOUT, pcf->standby_regs.ledout);
25 -       __reg_write(pcf, PCF50633_REG_LEDENA, pcf->standby_regs.ledena);
26 +       /* we force the backlight on in fact */
27 +       __reg_write(pcf, PCF50633_REG_LEDOUT, 0x3f);
28 +       __reg_write(pcf, PCF50633_REG_LEDENA, 0x21);
29         __reg_write(pcf, PCF50633_REG_LEDDIM, pcf->standby_regs.leddim);
30  }
31  EXPORT_SYMBOL_GPL(pcf50633_backlight_resume);
32 -- 
33 1.5.6.5
34