[Armadeus-commitlog] armadeus branch, master, updated. release-3.2-145-gaa31b0a
Brought to you by:
sszy
|
From: Fabien M <fa...@us...> - 2010-01-27 18:00:48
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via aa31b0afbb79fac81765edfe67e705a2106684c7 (commit)
from 52447f8b6226cf3feb4ac2bc97d414718aff5437 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit aa31b0afbb79fac81765edfe67e705a2106684c7
Author: Fabien Marteau <fab...@ar...>
Date: Wed Jan 27 19:00:23 2010 +0100
[LINUX] add backlight power switch capability in fb driver
-----------------------------------------------------------------------
Summary of changes:
...xfb-add_backlight_power_switch_capability.patch | 35 ++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
create mode 100644 buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/337b-armadeus-imxfb-add_backlight_power_switch_capability.patch
diff --git a/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/337b-armadeus-imxfb-add_backlight_power_switch_capability.patch b/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/337b-armadeus-imxfb-add_backlight_power_switch_capability.patch
new file mode 100644
index 0000000..788d321
--- /dev/null
+++ b/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/337b-armadeus-imxfb-add_backlight_power_switch_capability.patch
@@ -0,0 +1,35 @@
+Index: linux-2.6.29.6/arch/arm/plat-mxc/include/mach/imx_fb.h
+===================================================================
+--- linux-2.6.29.6.orig/arch/arm/plat-mxc/include/mach/imx_fb.h 2010-01-27 18:50:48.000000000 +0100
++++ linux-2.6.29.6/arch/arm/plat-mxc/include/mach/imx_fb.h 2010-01-27 18:51:43.000000000 +0100
+@@ -28,6 +28,7 @@
+ int (*init)(struct platform_device *pdev);
+ int (*exit)(struct platform_device *pdev);
+
++ void (*power_backlight)(struct platform_device *pdev, int on);
+ int (*power_lcd)(struct platform_device *pdev, int on);
+ };
+
+Index: linux-2.6.29.6/drivers/video/mxc/mx2fb.c
+===================================================================
+--- linux-2.6.29.6.orig/drivers/video/mxc/mx2fb.c 2010-01-27 18:54:43.000000000 +0100
++++ linux-2.6.29.6/drivers/video/mxc/mx2fb.c 2010-01-27 18:56:36.000000000 +0100
+@@ -772,6 +772,9 @@
+ mx2fbi->pdata->init(mx2fbi->pdev);
+ if (mx2fbi->pdata->power_lcd)
+ mx2fbi->pdata->power_lcd(mx2fbi->pdev, 1);
++ if (mx2fbi->pdata->power_backlight)
++ mx2fbi->pdata->power_backlight(mx2fbi->pdev, 1);
++
+ _set_brightness(brightness);
+ fb_enabled++;
+ #ifdef CONFIG_FB_MXC_TVOUT
+@@ -800,6 +803,8 @@
+ else {
+ if (fb_enabled) {
+ mx2fbi->pdata->exit(mx2fbi->pdev);
++ if (mx2fbi->pdata->power_backlight)
++ mx2fbi->pdata->power_backlight(mx2fbi->pdev, 0);
+ if (mx2fbi->pdata->power_lcd)
+ mx2fbi->pdata->power_lcd(mx2fbi->pdev, 0);
+ _set_brightness(0);
hooks/post-receive
--
armadeus
|