[Title] lcd dimm problem after backlight time is expired.
authorSon Hyunjun <hj79.son@samsung.com>
Mon, 27 Feb 2012 07:40:08 +0000 (16:40 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Mon, 27 Feb 2012 07:40:08 +0000 (16:40 +0900)
[Type] Bugfix
[Module] Emulator / Display
[Priority] Minor
[CQ#]
[Redmine#]
[Problem] lcd off instead of lcd dimm after backlight time is expired.
[Cause]
[Solution]

Change-Id: I486d2b6d83cc86ee5ae45f94c19a3ae3bf85b2d8

drivers/maru/maru_bl.c

index 30180a61a0aa75b6583318cbcc3e42b5e46a70b8..10c9ed4316c6255d9709d9b4d80ca2073f3ac485 100644 (file)
@@ -74,17 +74,25 @@ static int marubl_get_intensity(struct backlight_device *bd)
 static int marubl_send_intensity(struct backlight_device *bd)
 {
        int intensity = bd->props.brightness;
+       unsigned int off = 0;
 
-       if (bd->props.power != FB_BLANK_UNBLANK)
+       if (bd->props.power != FB_BLANK_UNBLANK) {
                intensity = 0;
-       if (bd->props.state & BL_CORE_FBBLANK)
+               off = 1;
+       }
+       if (bd->props.state & BL_CORE_FBBLANK) {
                intensity = 0;
-       if (bd->props.state & BL_CORE_SUSPENDED)
+               off = 1;
+       }
+       if (bd->props.state & BL_CORE_SUSPENDED) {
                intensity = 0;
+               off = 1;
+       }
 //     if (bd->props.state & GENERICBL_BATTLOW)
 //             intensity &= bl_machinfo->limit_mask;
 
        writel(intensity, marubl_device->marubl_mmreg);
+       writel(off, marubl_device->marubl_mmreg + 0x04);
        marubl_device->brightness = intensity;
 
        return 0;