summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch')
-rw-r--r--recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch b/recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch
new file mode 100644
index 0000000000..c50e721c54
--- /dev/null
+++ b/recipes/linux/linux-2.6.24/smartq5/mer/0005-backlight-parameter-and-fixes.patch
@@ -0,0 +1,67 @@
+From 64d9ed38c8e6c71ffdbc4640ae38cca3dbcbe782 Mon Sep 17 00:00:00 2001
+From: Carsten V. Munk <carsten.munk@gmail.com>
+Date: Thu, 6 Aug 2009 09:31:09 +0000
+Subject: [PATCH 05/13] backlight parameter and fixes
+
+---
+ drivers/video/s3c/s3cfb.c | 14 +++++++++++++-
+ 1 files changed, 13 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/video/s3c/s3cfb.c b/drivers/video/s3c/s3cfb.c
+index 19ab25f..b854645 100644
+--- a/drivers/video/s3c/s3cfb.c
++++ b/drivers/video/s3c/s3cfb.c
+@@ -14,6 +14,7 @@
+ */
+
+ #include <linux/module.h>
++#include <linux/moduleparam.h>
+ #include <linux/kernel.h>
+ #include <linux/errno.h>
+ #include <linux/string.h>
+@@ -40,8 +41,10 @@
+
+ #include "s3cfb.h"
+
+-//#define CONFIG_FB_COLORBAR 1
++/*
++#define CONFIG_FB_COLORBAR 1
+ #include "colorbar.c"
++*/
+
+ /*
+ * Globals
+@@ -270,7 +273,10 @@ static int s3cfb_blank(int blank_mode, struct fb_info *info)
+ switch (blank_mode) {
+ case VESA_NO_BLANKING: /* lcd on, backlight on */
+ if(!backlight_power)
++ {
+ s3cfb_set_backlight_power(1);
++ s3cfb_set_lcd_power(1);
++ }
+ break;
+
+ case VESA_VSYNC_SUSPEND: /* lcd on, backlight off */
+@@ -923,6 +929,10 @@ static int __init s3cfb_probe(struct platform_device *pdev)
+
+ s3cfb_set_par(&(s3c_fb_info[0].fb));
+ mdelay(10);
++
++ if(backlight_level != S3C_FB_MIN_BACKLIGHT_LEVEL)
++ s3cfb_set_backlight_level(backlight_level);
++
+ //draw_colorbar(&(s3c_fb_info[0].fb));
+
+ return 0;
+@@ -1004,6 +1014,8 @@ static void __exit s3cfb_cleanup(void)
+ module_init(s3cfb_init);
+ module_exit(s3cfb_cleanup);
+
++module_param_named(backlight, backlight_level, int, 0);
++
+ MODULE_AUTHOR("Jinsung Yang");
+ MODULE_DESCRIPTION("S3C Framebuffer Driver");
+ MODULE_LICENSE("GPL");
+--
+1.6.2.4
+