r2108 - trunk/src/target/kernel/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Thu May 31 12:39:11 CEST 2007
Author: laforge
Date: 2007-05-31 12:39:10 +0200 (Thu, 31 May 2007)
New Revision: 2108
Modified:
trunk/src/target/kernel/patches/gta01-pcf50606.patch
trunk/src/target/kernel/patches/hxd8-core.patch
Log:
* pcf50606: add initial backlight brightness to platform_data
* hxd8: set initial pcf50606 backlight brightness (Matt Hsu)
Modified: trunk/src/target/kernel/patches/gta01-pcf50606.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-pcf50606.patch 2007-05-30 22:27:16 UTC (rev 2107)
+++ trunk/src/target/kernel/patches/gta01-pcf50606.patch 2007-05-31 10:39:10 UTC (rev 2108)
@@ -4,7 +4,7 @@
===================================================================
--- /dev/null
+++ linux-2.6.21-moko/drivers/i2c/chips/pcf50606.c
-@@ -0,0 +1,1928 @@
+@@ -0,0 +1,1929 @@
+/* Philips PCF50606 Power Management Unit (PMU) driver
+ *
+ * (C) 2006 by OpenMoko, Inc.
@@ -1691,7 +1691,8 @@
+ /* FIXME: are we sure we want default == off? */
+ data->backlight->props.max_brightness = 16;
+ data->backlight->props.power = FB_BLANK_UNBLANK;
-+ data->backlight->props.brightness = 0;
++ data->backlight->props.brightness =
++ data->pdata->init_brightness;
+ backlight_update_status(data->backlight);
+ }
+
@@ -2290,7 +2291,7 @@
===================================================================
--- /dev/null
+++ linux-2.6.21-moko/include/linux/pcf50606.h
-@@ -0,0 +1,101 @@
+@@ -0,0 +1,104 @@
+#ifndef _LINUX_PCF50606_H
+#define _LINUX_PCF50606_H
+
@@ -2385,6 +2386,9 @@
+ unsigned int r_fix_batt_par;
+ unsigned int r_sense_milli;
+
++ /* backlight related */
++ unsigned int init_brightness;
++
+ struct {
+ u_int8_t mbcc3; /* charger voltage / current */
+ } charger;
Modified: trunk/src/target/kernel/patches/hxd8-core.patch
===================================================================
--- trunk/src/target/kernel/patches/hxd8-core.patch 2007-05-30 22:27:16 UTC (rev 2107)
+++ trunk/src/target/kernel/patches/hxd8-core.patch 2007-05-31 10:39:10 UTC (rev 2108)
@@ -29,7 +29,7 @@
===================================================================
--- /dev/null
+++ linux-2.6.21-moko/arch/arm/mach-s3c2440/mach-hxd8.c
-@@ -0,0 +1,402 @@
+@@ -0,0 +1,403 @@
+/* linux/arch/arm/mach-s3c2440/mach-hxd8.c
+ *
+ * S3C2440 Machine Support for the FIC HXD8
@@ -199,6 +199,7 @@
+ PCF50606_FEAT_PWM_BL |
+ PCF50606_FEAT_BATVOLT,
+ .onkey_seconds_required = 5,
++ .init_brightness = 8,
+ .rails = {
+ [PCF50606_REGULATOR_D1REG] = {
+ .name = "rc_3v3",
More information about the commitlog
mailing list