Log:
HXD8: add Add pcf50606 back light config in pmu resoure
Index: linux-2.6.21/arch/arm/mach-s3c2440/mach-hxd8.c
===================================================================
--- linux-2.6.21.orig/arch/arm/mach-s3c2440/mach-hxd8.c 2007-05-26 16:40:00.000000000 +0800
+++ linux-2.6.21/arch/arm/mach-s3c2440/mach-hxd8.c 2007-05-26 16:44:34.000000000 +0800
@@ -6,6 +6,10 @@
* Author: Harald Welte <[EMAIL PROTECTED]>
* All rights reserved.
*
+ * ChangeLog
+ * 2007-05-26: Matt Hsu <[EMAIL PROTECTED]>
+ * - Add pcf50606 back light config in pmu resoure
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
@@ -167,6 +171,7 @@
PCF50606_FEAT_PWM_BL |
PCF50606_FEAT_BATVOLT,
.onkey_seconds_required = 5,
+ .init_brightness = 8,
.rails = {
[PCF50606_REGULATOR_D1REG] = {
.name = "rc_3v3",
Index: linux-2.6.21/drivers/i2c/chips/pcf50606.c
===================================================================
--- linux-2.6.21.orig/drivers/i2c/chips/pcf50606.c 2007-05-26 16:46:11.000000000 +0800
+++ linux-2.6.21/drivers/i2c/chips/pcf50606.c 2007-05-26 16:48:17.000000000 +0800
@@ -1684,7 +1684,7 @@
/* 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);
}
Index: linux-2.6.21/include/linux/pcf50606.h
===================================================================
--- linux-2.6.21.orig/include/linux/pcf50606.h 2007-05-26 16:56:07.000000000 +0800
+++ linux-2.6.21/include/linux/pcf50606.h 2007-05-26 16:56:39.000000000 +0800
@@ -92,6 +92,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;