msm: clean up of the writeback variables in the board
clean up of the writeback variables for ion support
Change-Id: Ic710e35645eb3a91b9cc571b4d320db53c07d34a
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8930-display.c b/arch/arm/mach-msm/board-8930-display.c
index c1b880c..e179e84 100644
--- a/arch/arm/mach-msm/board-8930-display.c
+++ b/arch/arm/mach-msm/board-8930-display.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -435,19 +435,11 @@
.mdp_bus_scale_table = &mdp_bus_scale_pdata,
#endif
.mdp_rev = MDP_REV_42,
- .mdp_writeback_memtype = MEMTYPE_EBI1,
- .mdp_writeback_phys = NULL,
};
void __init msm8930_mdp_writeback(struct memtype_reserve* reserve_table)
{
- mdp_pdata.mdp_writeback_size_ov0 = MSM_FB_OVERLAY0_WRITEBACK_SIZE;
- mdp_pdata.mdp_writeback_size_ov1 = MSM_FB_OVERLAY1_WRITEBACK_SIZE;
- reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov0;
- reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov1;
}
#define LPM_CHANNEL0 0
diff --git a/arch/arm/mach-msm/board-8960-display.c b/arch/arm/mach-msm/board-8960-display.c
index 3bc9f0f..77040d9 100644
--- a/arch/arm/mach-msm/board-8960-display.c
+++ b/arch/arm/mach-msm/board-8960-display.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -550,19 +550,11 @@
.mdp_bus_scale_table = &mdp_bus_scale_pdata,
#endif
.mdp_rev = MDP_REV_42,
- .mdp_writeback_memtype = MEMTYPE_EBI1,
- .mdp_writeback_phys = NULL,
};
void __init msm8960_mdp_writeback(struct memtype_reserve* reserve_table)
{
- mdp_pdata.mdp_writeback_size_ov0 = MSM_FB_OVERLAY0_WRITEBACK_SIZE;
- mdp_pdata.mdp_writeback_size_ov1 = MSM_FB_OVERLAY1_WRITEBACK_SIZE;
- reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov0;
- reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov1;
}
static struct platform_device mipi_dsi_renesas_panel_device = {
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index 418428b..ca0ace5 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -9445,19 +9445,11 @@
.mdp_bus_scale_table = &mdp_bus_scale_pdata,
#endif
.mdp_rev = MDP_REV_41,
- .mdp_writeback_memtype = MEMTYPE_EBI1,
- .mdp_writeback_phys = NULL,
};
static void __init reserve_mdp_memory(void)
{
- mdp_pdata.mdp_writeback_size_ov0 = MSM_FB_OVERLAY0_WRITEBACK_SIZE;
- mdp_pdata.mdp_writeback_size_ov1 = MSM_FB_OVERLAY1_WRITEBACK_SIZE;
- msm8x60_reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov0;
- msm8x60_reserve_table[mdp_pdata.mdp_writeback_memtype].size +=
- mdp_pdata.mdp_writeback_size_ov1;
}
#ifdef CONFIG_FB_MSM_TVOUT
diff --git a/arch/arm/mach-msm/include/mach/board.h b/arch/arm/mach-msm/include/mach/board.h
index ae68036..3de477f 100644
--- a/arch/arm/mach-msm/include/mach/board.h
+++ b/arch/arm/mach-msm/include/mach/board.h
@@ -1,7 +1,7 @@
/* arch/arm/mach-msm/include/mach/board.h
*
* Copyright (C) 2007 Google, Inc.
- * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
+ * Copyright (c) 2008-2012, Code Aurora Forum. All rights reserved.
* Author: Brian Swetland <swetland@google.com>
*
* This software is licensed under the terms of the GNU General Public
@@ -316,10 +316,6 @@
struct msm_bus_scale_pdata *mdp_bus_scale_table;
#endif
int mdp_rev;
- int mdp_writeback_memtype;
- void *mdp_writeback_phys; /* writeback physical addr */
- int mdp_writeback_size_ov0; /* overlay0 writeback size */
- int mdp_writeback_size_ov1; /* overlay1 writeback size */
};