aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:09:43 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:43 +0000
commit2bf6c9a4db92f98b97205d79cb6076a379675f98 (patch)
treebdcb5d88efe0660aada3b312575341efb5c37a44 /include
parent55a09978f230a2ec899ce5adda219c7f7819c3a1 (diff)
fix-suspend-backlight-timing-pm-debug.patch
This patch improves the smoothness of suspend and resume action. Taking out CONFIG_PM_DEBUG allows much more rapid resume (the low level serial traffic appears to be synchronous) Added a platform callback in jbt driver and support in pcf50633 so we can defer bringing up the backlight until the LCM is able to process video again (which must happen after the glamo is up and producing video beacuse the LCM is hooked to glamo SPI) GTA01 should not be affected by all this as the callback will default to null and it is on pcf50606 Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/jbt6k74.h3
-rw-r--r--include/linux/pcf50633.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/jbt6k74.h b/include/linux/jbt6k74.h
index 3fbe1783460..0ac91241f08 100644
--- a/include/linux/jbt6k74.h
+++ b/include/linux/jbt6k74.h
@@ -2,7 +2,8 @@
#define __JBT6K74_H__
struct jbt6k74_platform_data {
- void (* reset)(int devindex, int level);
+ void (*reset)(int devindex, int level);
+ void (*resuming)(int devindex); /* called when LCM is resumed */
};
#endif
diff --git a/include/linux/pcf50633.h b/include/linux/pcf50633.h
index b6a67ee5e4f..f42798545b9 100644
--- a/include/linux/pcf50633.h
+++ b/include/linux/pcf50633.h
@@ -61,6 +61,9 @@ pcf50633_usb_curlim_set(struct pcf50633_data *pcf, int ma);
extern void
pcf50633_charge_enable(struct pcf50633_data *pcf, int on);
+extern void
+pcf50633_backlight_resume(struct pcf50633_data *pcf);
+
#define PCF50633_FEAT_EXTON 0x00000001 /* not yet supported */
#define PCF50633_FEAT_MBC 0x00000002
#define PCF50633_FEAT_BBC 0x00000004 /* not yet supported */
@@ -89,6 +92,9 @@ struct pcf50633_platform_data {
u_int8_t mbcc3; /* charger voltage / current */
} charger;
pmu_cb *cb;
+
+ /* post-resume backlight bringup */
+ int defer_resume_backlight;
};
#endif /* _PCF50633_H */