summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarcel Tunnissen <Marcel.Tuennissen@stericsson.com>2011-05-10 12:00:52 +0200
committersaid m bagheri <ebgheri@steludxu2848.(none)>2011-06-17 13:42:01 +0200
commitcd1edae8f821b1182310bf7dac44308905ba2b33 (patch)
tree3891a531f51be292ac1492e0e45cab6d8c9608ed /arch
parent315f00ec0fa608f3f634647f43a46705ae05ca7c (diff)
video: mcde: Support YUV 422 overlay pixel format
This patch adds support for converting an overlay with YUV 422 pixel format. ST-Ericsson ID: 339423 ST-Ericsson Linux next: Not tested, ER 282779 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5a8536c12f12b6cf69f7053cc236e274d13295b4 Signed-off-by: Marcel Tunnissen <Marcel.Tuennissen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22867 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Tested-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/board-mop500-mcde.c30
-rw-r--r--arch/arm/mach-ux500/board-u5500-mcde.c20
2 files changed, 26 insertions, 24 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-mcde.c b/arch/arm/mach-ux500/board-mop500-mcde.c
index 56201ccfffc..b553ba9db2c 100644
--- a/arch/arm/mach-ux500/board-mop500-mcde.c
+++ b/arch/arm/mach-ux500/board-mop500-mcde.c
@@ -67,6 +67,18 @@ static int __init startup_graphics_setup(char *str)
}
__setup("startup_graphics=", startup_graphics_setup);
+#if defined(CONFIG_DISPLAY_AB8500_TERTIARY) ||\
+ defined(CONFIG_DISPLAY_AV8100_TERTIARY)
+static struct mcde_col_transform rgb_2_yCbCr_transform = {
+ .matrix = {
+ {0x0042, 0x0081, 0x0019},
+ {0xffda, 0xffb6, 0x0070},
+ {0x0070, 0xffa2, 0xffee},
+ },
+ .offset = {0x10, 0x80, 0x80},
+};
+#endif
+
#ifdef CONFIG_DISPLAY_GENERIC_DSI_PRIMARY
static struct mcde_port port0 = {
.type = MCDE_PORTTYPE_DSI,
@@ -277,14 +289,7 @@ static struct mcde_port port_tvout1 = {
static struct ab8500_display_platform_data ab8500_display_pdata = {
.nr_regulators = 2,
.regulator_id = {"v-tvout", "v-ab8500-AV-switch"},
- .rgb_2_yCbCr_transform = {
- .matrix = {
- {0x42, 0x81, 0x19},
- {0xffda, 0xffb6, 0x70},
- {0x70, 0xffa2, 0xffee},
- },
- .offset = {0x10, 0x80, 0x80},
- }
+ .rgb_2_yCbCr_transform = &rgb_2_yCbCr_transform,
};
static struct ux500_pins *tvout_pins;
@@ -389,14 +394,7 @@ static struct mcde_display_hdmi_platform_data av8100_hdmi_pdata = {
.regulator_id = NULL, /* TODO: "display_main" */
.cvbs_regulator_id = "v-av8100-AV-switch",
.ddb_id = 1,
- .rgb_2_yCbCr_transform = {
- .matrix = {
- {0x42, 0x81, 0x19},
- {0xffda, 0xffb6, 0x70},
- {0x70, 0xffa2, 0xffee},
- },
- .offset = {0x10, 0x80, 0x80},
- }
+ .rgb_2_yCbCr_transform = &rgb_2_yCbCr_transform,
};
static struct mcde_display_device av8100_hdmi = {
diff --git a/arch/arm/mach-ux500/board-u5500-mcde.c b/arch/arm/mach-ux500/board-u5500-mcde.c
index 7394058881d..6c3bbe606fe 100644
--- a/arch/arm/mach-ux500/board-u5500-mcde.c
+++ b/arch/arm/mach-ux500/board-u5500-mcde.c
@@ -56,6 +56,17 @@ static int __init startup_graphics_setup(char *str)
}
__setup("startup_graphics=", startup_graphics_setup);
+#ifdef CONFIG_DISPLAY_AV8100_TERTIARY
+static struct mcde_col_transform rgb_2_yCbCr_transform = {
+ .matrix = {
+ {0x0042, 0x0081, 0x0019},
+ {0xffda, 0xffb6, 0x0070},
+ {0x0070, 0xffa2, 0xffee},
+ },
+ .offset = {0x10, 0x80, 0x80},
+};
+#endif
+
#ifdef CONFIG_DISPLAY_GENERIC_DSI_PRIMARY
static struct mcde_port port0 = {
.type = MCDE_PORTTYPE_DSI,
@@ -158,14 +169,7 @@ static struct mcde_display_hdmi_platform_data av8100_hdmi_pdata = {
.regulator_id = NULL,
.cvbs_regulator_id = "v-av8100-AV-switch",
.ddb_id = 1,
- .rgb_2_yCbCr_transform = {
- .matrix = {
- {0x42, 0x81, 0x19},
- {0xffda, 0xffb6, 0x70},
- {0x70, 0xffa2, 0xffee},
- },
- .offset = {0x10, 0x80, 0x80},
- }
+ .rgb_2_yCbCr_transform = &rgb_2_yCbCr_transform,
};
static struct mcde_display_device av8100_hdmi = {