aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lcd.h
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
commitc6da2cfeb05178a11c6d062a06f8078150ee492f (patch)
treef3b4021d252c52d6463a9b3c1bb7245e399b009c /include/linux/lcd.h
parentc6d7c4dbff353eac7919342ae6b3299a378160a6 (diff)
downloadkernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.gz
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.bz2
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.zip
samsung update 1
Diffstat (limited to 'include/linux/lcd.h')
-rw-r--r--include/linux/lcd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/lcd.h b/include/linux/lcd.h
index 8877123f2d6..9fb77ae5ae2 100644
--- a/include/linux/lcd.h
+++ b/include/linux/lcd.h
@@ -40,6 +40,16 @@ struct lcd_ops {
/* Get the LCD panel power status (0: full on, 1..3: controller
power on, flat panel power off, 4: full off), see FB_BLANK_XXX */
int (*get_power)(struct lcd_device *);
+ /*
+ * Enable or disable power to the LCD(0: on; 4: off, see FB_BLANK_XXX)
+ * and this callback would be called proir to fb driver's callback.
+ *
+ * P.S. note that if early_set_power is not NULL then early fb notifier
+ * would be registered.
+ */
+ int (*early_set_power)(struct lcd_device *, int power);
+ /* revert the effects of the early blank event. */
+ int (*r_early_set_power)(struct lcd_device *, int power);
/* Enable or disable power to the LCD (0: on; 4: off, see FB_BLANK_XXX) */
int (*set_power)(struct lcd_device *, int power);
/* Get the current contrast setting (0-max_contrast) */
@@ -76,6 +86,9 @@ struct lcd_platform_data {
lcd power off and 1, lcd power on. */
int (*power_on)(struct lcd_device *ld, int enable);
+ int (*gpio_cfg_earlysuspend)(struct lcd_device *ld);
+ int (*gpio_cfg_lateresume)(struct lcd_device *ld);
+
/* it indicates whether lcd panel was enabled
from bootloader or not. */
int lcd_enabled;
@@ -87,6 +100,8 @@ struct lcd_platform_data {
unsigned int power_on_delay;
/* stable time needing to become lcd power off. */
unsigned int power_off_delay;
+ /*stable time needing to become sleep in mode after sleep out mode. */
+ unsigned int sleep_in_delay;
/* it could be used for any purpose. */
void *pdata;