summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMarcus Lorentzon <marcus.xm.lorentzon@stericsson.com>2011-10-25 19:12:44 +0200
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:00:17 +0100
commit89bc4b2a86b6b9013fec85722072eb3592d380dd (patch)
treeb282705af533b8829933c7fb499da345475bc68e /arch/arm
parentf7b478aa7806983578c9ae5a5bf00179cf7a75e6 (diff)
mach: ux500: Make fb create code generic
fbdev create use an hmdi specific function. This patch remove that function and makes fbcreate generic and shared. ST-Ericsson ID: 369972 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I8a4b148bb6a01cde74fbe7c4fb30e9d7ee77ef68 Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35244 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-ux500/board-mop500-mcde.c11
-rw-r--r--arch/arm/mach-ux500/board-u5500-mcde.c11
2 files changed, 6 insertions, 16 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-mcde.c b/arch/arm/mach-ux500/board-mop500-mcde.c
index ead9dd841c5..f65d1f9e319 100644
--- a/arch/arm/mach-ux500/board-mop500-mcde.c
+++ b/arch/arm/mach-ux500/board-mop500-mcde.c
@@ -361,15 +361,10 @@ static int display_postregistered_callback(struct notifier_block *nb,
virtual_height = height * 2;
- if (ddev->id == AV8100_DISPLAY_ID) {
-#ifdef CONFIG_DISPLAY_AV8100_TRIPPLE_BUFFER
- virtual_height = height * 3;
-#endif
-#ifdef CONFIG_MCDE_DISPLAY_HDMI_FB_AUTO_CREATE
- hdmi_fb_onoff(ddev, 1, 0, 0);
-#endif
+#ifndef CONFIG_MCDE_DISPLAY_HDMI_FB_AUTO_CREATE
+ if (ddev->id == AV8100_DISPLAY_ID)
goto out;
- }
+#endif
/* Create frame buffer */
fbi = mcde_fb_create(ddev, width, height, width, virtual_height,
diff --git a/arch/arm/mach-ux500/board-u5500-mcde.c b/arch/arm/mach-ux500/board-u5500-mcde.c
index 6f53aaa353f..5c4ba76055d 100644
--- a/arch/arm/mach-ux500/board-u5500-mcde.c
+++ b/arch/arm/mach-ux500/board-u5500-mcde.c
@@ -168,15 +168,10 @@ static int display_postregistered_callback(struct notifier_block *nb,
virtual_height = height * 2;
- if (ddev->id == AV8100_DISPLAY_ID) {
-#ifdef CONFIG_DISPLAY_AV8100_TRIPPLE_BUFFER
- virtual_height = height * 3;
-#endif
-#ifdef CONFIG_MCDE_DISPLAY_HDMI_FB_AUTO_CREATE
- hdmi_fb_onoff(ddev, 1, 0, 0);
-#endif
+#ifndef CONFIG_MCDE_DISPLAY_HDMI_FB_AUTO_CREATE
+ if (ddev->id == AV8100_DISPLAY_ID)
goto out;
- }
+#endif
/* Create frame buffer */
fbi = mcde_fb_create(ddev, width, height, width, virtual_height,