aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lorentzon <marcus.xm.lorentzon@stericsson.com>2011-10-12 14:46:03 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-27 16:09:05 +0200
commitb91f9cc7e5a2921058f06e0f401d8a11d3e53c4a (patch)
tree708ace84493e3312640bd9801634ee65eb496fcd
parentebd4984fbb0a90f69ecef2ef721a6df96a859a2f (diff)
ux500: mcde: Remove unused MCDE auto sync
Auto sync for command mode displays are no longer used and should be implemented in fbdev if needed. ST-Ericsson ID: 365249 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I860d9221dc79d6e5acd53c514d90a8eac57fb18a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33800 Reviewed-by: Marcus LORENTZON <marcus.xm.lorentzon@stericsson.com> Tested-by: Marcus LORENTZON <marcus.xm.lorentzon@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/Kconfig-arch13
-rw-r--r--arch/arm/mach-ux500/board-mop500-mcde.c66
-rw-r--r--arch/arm/mach-ux500/board-u5500-mcde.c69
3 files changed, 0 insertions, 148 deletions
diff --git a/arch/arm/mach-ux500/Kconfig-arch b/arch/arm/mach-ux500/Kconfig-arch
index a3ea7ad3d78..d00b176301d 100644
--- a/arch/arm/mach-ux500/Kconfig-arch
+++ b/arch/arm/mach-ux500/Kconfig-arch
@@ -89,13 +89,6 @@ config DISPLAY_GENERIC_DSI_PRIMARY_VSYNC
help
Say yes to enable v-sync for primary display
-config DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC
- bool "Enable auto sync for primary display"
- depends on DISPLAY_GENERIC_DSI_PRIMARY
- default n
- help
- Say yes to enable auto sync for primary display
-
config DISPLAY_SONY_ACX424AKP_DSI_PRIMARY
bool "Sony acx424akp DSI display"
select MCDE_DISPLAY_SONY_ACX424AKP_DSI
@@ -117,12 +110,6 @@ config DISPLAY_GENERIC_DSI_SECONDARY_VSYNC
help
Say yes to enable v-sync for secondary display
-config DISPLAY_GENERIC_DSI_SECONDARY_AUTO_SYNC
- bool "Enable auto sync for secondary display"
- depends on DISPLAY_GENERIC_DSI_SECONDARY
- help
- Say yes to enable auto sync for secondary display
-
config DISPLAY_AB8500_TERTIARY
bool "AB8500 TVout display support"
depends on MACH_U8500 && !AV8100_SDTV
diff --git a/arch/arm/mach-ux500/board-mop500-mcde.c b/arch/arm/mach-ux500/board-mop500-mcde.c
index a179c157ff5..5933ab797fa 100644
--- a/arch/arm/mach-ux500/board-mop500-mcde.c
+++ b/arch/arm/mach-ux500/board-mop500-mcde.c
@@ -494,18 +494,6 @@ static int display_postregistered_callback(struct notifier_block *nb,
virtual_width = width;
virtual_height = height * 2;
-#if defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY) && \
- defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC)
- if (ddev->id == PRIMARY_DISPLAY_ID)
- virtual_height = height;
-#endif
-
-#if defined(CONFIG_DISPLAY_GENERIC_DSI_SECONDARY) && \
- defined(CONFIG_DISPLAY_GENERIC_DSI_SECONDARY_AUTO_SYNC)
- if (ddev->id == SECONDARY_DISPLAY_ID)
- virtual_height = height;
-#endif
-
#ifdef CONFIG_DISPLAY_AV8100_TERTIARY
if (ddev->id == AV8100_DISPLAY_ID) {
#ifdef CONFIG_MCDE_DISPLAY_HDMI_FB_AUTO_CREATE
@@ -566,58 +554,6 @@ static struct notifier_block display_nb = {
* The main display will not be updated if startup graphics is displayed
* from u-boot.
*/
-#if defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC) || \
- defined(CONFIG_DISPLAY_GENERIC_DSI_SECONDARY_AUTO_SYNC)
-static int framebuffer_postregistered_callback(struct notifier_block *nb,
- unsigned long event, void *data)
-{
- int ret = 0;
- struct fb_event *event_data = data;
- struct fb_info *info;
- struct fb_var_screeninfo var;
- struct fb_fix_screeninfo fix;
- struct mcde_fb *mfb;
- int i;
-
- if (event != FB_EVENT_FB_REGISTERED)
- return 0;
-
- if (!event_data)
- return 0;
-
- info = event_data->info;
- mfb = to_mcde_fb(info);
- var = info->var;
- fix = info->fix;
-
- /* Apply overlay info */
- for (i = 0; i < mfb->num_ovlys; i++) {
- struct mcde_overlay *ovly = mfb->ovlys[i];
- struct mcde_overlay_info ovly_info;
- struct mcde_fb *mfb = to_mcde_fb(info);
- int num_buffers;
- memset(&ovly_info, 0, sizeof(ovly_info));
- ovly_info.paddr = fix.smem_start +
- fix.line_length * var.yoffset;
- if (ovly_info.paddr + fix.line_length * var.yres
- > fix.smem_start + fix.smem_len)
- ovly_info.paddr = fix.smem_start;
- ovly_info.fmt = mfb->pix_fmt;
- ovly_info.stride = fix.line_length;
- ovly_info.w = var.xres;
- ovly_info.h = var.yres;
- ovly_info.dirty.w = var.xres;
- ovly_info.dirty.h = var.yres;
- (void) mcde_dss_apply_overlay(ovly, &ovly_info);
- num_buffers = var.yres_virtual / var.yres;
- ret = mcde_dss_update_overlay(ovly, num_buffers == 3);
- if (ret)
- break;
- }
-
- return ret;
-}
-#else
static int framebuffer_postregistered_callback(struct notifier_block *nb,
unsigned long event, void *data)
{
@@ -647,8 +583,6 @@ static int framebuffer_postregistered_callback(struct notifier_block *nb,
out:
return ret;
}
-#endif
-
static struct notifier_block framebuffer_nb = {
.notifier_call = framebuffer_postregistered_callback,
diff --git a/arch/arm/mach-ux500/board-u5500-mcde.c b/arch/arm/mach-ux500/board-u5500-mcde.c
index 9fe561033ba..4af8ef048f7 100644
--- a/arch/arm/mach-ux500/board-u5500-mcde.c
+++ b/arch/arm/mach-ux500/board-u5500-mcde.c
@@ -84,14 +84,7 @@ static struct mcde_port port0 = {
.pixel_format = MCDE_PORTPIXFMT_DSI_24BPP,
.ifc = DSI_VIDEO_MODE,
.link = 0,
-#if defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY) && \
- defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC)
- .sync_src = MCDE_SYNCSRC_OFF,
- .update_auto_trig = true,
-#else
.sync_src = MCDE_SYNCSRC_BTA,
- .update_auto_trig = false,
-#endif
.phy = {
.dsi = {
.virt_id = 0,
@@ -292,13 +285,6 @@ static int display_postregistered_callback(struct notifier_block *nb,
virtual_width = width;
virtual_height = height * 2;
-#if (defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY) || \
- defined(CONFIG_DISPLAY_SONY_ACX424AKP_DSI_PRIMARY)) && \
- defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC)
- if (ddev->id == PRIMARY_DISPLAY_ID)
- virtual_height = height;
-#endif
-
#ifdef CONFIG_DISPLAY_AV8100_TRIPPLE_BUFFER
if (ddev->id == AV8100_DISPLAY_ID)
virtual_height = height * 3;
@@ -358,59 +344,6 @@ static struct notifier_block display_nb = {
* The main display will not be updated if startup graphics is displayed
* from u-boot.
*/
-#if (defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY) || \
- defined(CONFIG_DISPLAY_SONY_ACX424AKP_DSI_PRIMARY)) && \
- defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_AUTO_SYNC)
-static int framebuffer_postregistered_callback(struct notifier_block *nb,
- unsigned long event, void *data)
-{
- int ret = 0;
- struct fb_event *event_data = data;
- struct fb_info *info;
- struct fb_var_screeninfo var;
- struct fb_fix_screeninfo fix;
- struct mcde_fb *mfb;
- int i;
-
- if (event != FB_EVENT_FB_REGISTERED)
- return 0;
-
- if (!event_data)
- return 0;
-
- info = event_data->info;
- mfb = to_mcde_fb(info);
- var = info->var;
- fix = info->fix;
-
- /* Apply overlay info */
- for (i = 0; i < mfb->num_ovlys; i++) {
- struct mcde_overlay *ovly = mfb->ovlys[i];
- struct mcde_overlay_info ovly_info;
- struct mcde_fb *mfb = to_mcde_fb(info);
- int num_buffers;
- memset(&ovly_info, 0, sizeof(ovly_info));
- ovly_info.paddr = fix.smem_start +
- fix.line_length * var.yoffset;
- if (ovly_info.paddr + fix.line_length * var.yres
- > fix.smem_start + fix.smem_len)
- ovly_info.paddr = fix.smem_start;
- ovly_info.fmt = mfb->pix_fmt;
- ovly_info.stride = fix.line_length;
- ovly_info.w = var.xres;
- ovly_info.h = var.yres;
- ovly_info.dirty.w = var.xres;
- ovly_info.dirty.h = var.yres;
- (void) mcde_dss_apply_overlay(ovly, &ovly_info);
- num_buffers = var.yres_virtual / var.yres;
- ret = mcde_dss_update_overlay(ovly, num_buffers == 3);
- if (ret)
- break;
- }
-
- return ret;
-}
-#else
static int framebuffer_postregistered_callback(struct notifier_block *nb,
unsigned long event, void *data)
{
@@ -440,8 +373,6 @@ static int framebuffer_postregistered_callback(struct notifier_block *nb,
out:
return ret;
}
-#endif
-
static struct notifier_block framebuffer_nb = {
.notifier_call = framebuffer_postregistered_callback,