diff options
author | Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com> | 2011-08-26 21:33:14 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:04:01 +0200 |
commit | 14178eb2a0ce3c4601ca94f7c771297ed0b7d5cc (patch) | |
tree | a381ca3e047319ab3e3e77598ae58a0c0563eb49 /include/video | |
parent | 112665f9be8a5840c365302c3f5e993d1e876c57 (diff) |
mcde:Migrate the patches for kernel3.0
Migrate the following commits for mcde driver files
0c80403 video: mcde: Add sony display support for DB5500
42c4245 Revert "video: mcde: Add sony display support for DB5500"
190e10f video: mcde: check for driver at suspend - resume
8a5da1e video: mcde: Configure channels and overlays for DB5500
4b15316 video: mcde: apply color conversion for DPI mode
409f44a video: mcde: Add sony display support for DB5500
585663b video: mcde: don't fail on no VANA
04ad4ac video: av8100: Add HDMI AVI Infoframe
7587405 video: mcde: Add DB5500 V2 support
91406cb video: mcde: remove PDP config
6bf7c79 video: mcde: fix suspend crash if no channel state
6d71d02 video: av8100: Add new firmware version
de0af16 mcde: fix crash on unsupported hardware version
5d46943 video: mcde: remove mdelay in DSI write
bc272e8 video: av8100: Reduce power consumption
2a22b39 video: mcde: enable mcde channel for DSI command
b441a21 video: mcde: enable reading > 1 byte in DCS cmd
ST-Ericsson ID: 352334
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Change-Id: If64e30ccb3bb789f0c6bc062d95623c4aad08be1
Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29549
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/mcde.h | 10 | ||||
-rw-r--r-- | include/video/mcde_display-sony_acx424akp_dsi.h | 41 | ||||
-rw-r--r-- | include/video/mcde_display.h | 1 |
3 files changed, 49 insertions, 3 deletions
diff --git a/include/video/mcde.h b/include/video/mcde.h index 213f33e43fe..75992bf7d57 100644 --- a/include/video/mcde.h +++ b/include/video/mcde.h @@ -236,7 +236,7 @@ enum mcde_display_rotation { #define MCDE_FIFO_AB_SIZE 640 #define MCDE_FIFO_C0C1_SIZE 160 -#define MCDE_PIXFETCH_LARGE_WTRMRKLVL 128 +#define MCDE_PIXFETCH_LARGE_WTRMRKLVL 256 #define MCDE_PIXFETCH_MEDIUM_WTRMRKLVL 64 #define MCDE_PIXFETCH_SMALL_WTRMRKLVL 16 @@ -251,6 +251,7 @@ enum mcde_display_rotation { #define MCDE_AUTO_SYNC_WATCHDOG 5 /* Hardware versions */ +#define MCDE_CHIP_VERSION_4_0_4 4 /* U5500 V2 */ #define MCDE_CHIP_VERSION_1_0_4 3 /* U5500 V1 */ #define MCDE_CHIP_VERSION_3_0_8 2 /* U8500 V2 */ #define MCDE_CHIP_VERSION_3_0_5 1 /* U8500 V1 */ @@ -412,8 +413,11 @@ void mcde_ovly_put(struct mcde_ovly_state *ovly); #define MCDE_MAX_DSI_DIRECT_CMD_WRITE 15 int mcde_dsi_generic_write(struct mcde_chnl_state *chnl, u8* para, int len); -int mcde_dsi_dcs_write(struct mcde_chnl_state *chnl, u8 cmd, u8* data, int len); -int mcde_dsi_dcs_read(struct mcde_chnl_state *chnl, u8 cmd, u8* data, int *len); +int mcde_dsi_dcs_write(struct mcde_chnl_state *chnl, + u8 cmd, u8 *data, int len); +int mcde_dsi_dcs_read(struct mcde_chnl_state *chnl, + u8 cmd, u32 *data, int *len); +int mcde_dsi_set_max_pkt_size(struct mcde_chnl_state *chnl, int size); /* MCDE */ diff --git a/include/video/mcde_display-sony_acx424akp_dsi.h b/include/video/mcde_display-sony_acx424akp_dsi.h new file mode 100644 index 00000000000..de862a3f28b --- /dev/null +++ b/include/video/mcde_display-sony_acx424akp_dsi.h @@ -0,0 +1,41 @@ +/* + * Copyright (C) ST-Ericsson SA 2010 + * + * ST-Ericsson MCDE Sony acx424akp DCS display driver + * + * Author: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> + * for ST-Ericsson. + * + * License terms: GNU General Public License (GPL), version 2. + */ +#ifndef __MCDE_DISPLAY_SONY_ACX424AKP__H__ +#define __MCDE_DISPLAY_SONY_ACX424AKP__H__ + +#include <linux/regulator/consumer.h> + +#include "mcde_display.h" + +enum display_panel_type { + DISPLAY_NONE = 0, + DISPLAY_SONY_ACX424AKP = 0x1b81, +}; + +struct mcde_display_sony_acx424akp_platform_data { + /* Platform info */ + int reset_gpio; + bool reset_high; + const char *regulator_id; + int reset_delay; /* ms */ + int reset_low_delay; /* ms */ + int sleep_out_delay; /* ms */ + enum display_panel_type disp_panel; /* display panel types */ + + /* Driver data */ + bool sony_acx424akp_platform_enable; + struct regulator *regulator; + int max_supply_voltage; + int min_supply_voltage; +}; + +#endif /* __MCDE_DISPLAY_SONY_ACX424AKP__H__ */ + diff --git a/include/video/mcde_display.h b/include/video/mcde_display.h index a5e449f6b5b..6519660f489 100644 --- a/include/video/mcde_display.h +++ b/include/video/mcde_display.h @@ -60,6 +60,7 @@ struct mcde_display_device { struct mcde_video_mode video_mode; int update_flags; bool stay_alive; + int check_transparency; /* Driver API */ void (*get_native_resolution)(struct mcde_display_device *dev, |