aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/mach-smdkv310.c
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-03-24 12:28:48 -0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-04-09 12:11:24 -0400
commit79d3c41ae444fb064cc8aab7cb249f577d6e0aae (patch)
tree3bb1e422478e9d0eb6065e56f7f9cafdb0a6d7e0 /arch/arm/mach-exynos/mach-smdkv310.c
parent884924be2a3368a3ac96587f347f9973c80140f6 (diff)
ARM: Samsung: Rework platform data of s3c-fb driver
For all the Samsung SoC based boards which have the platform data for s3c-fb driver, the 'default_win' element in the platform data is removed and the lcd panel video timing values are moved out of individual window configuration data. Acked-by: Jingoo Han <jg1.han@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: JeongHyeon Kim <jhkim@insignal.co.kr> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Kwangwoo Lee <kwangwoo.lee@gmail.com> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Peter Korsgaard <jacmet@sunsite.dk> Cc: Darius Augulis <augulis.darius@gmail.com> Cc: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'arch/arm/mach-exynos/mach-smdkv310.c')
-rw-r--r--arch/arm/mach-exynos/mach-smdkv310.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c
index 83b91fa777c1..3e482b8c3af8 100644
--- a/arch/arm/mach-exynos/mach-smdkv310.c
+++ b/arch/arm/mach-exynos/mach-smdkv310.c
@@ -161,22 +161,26 @@ static struct platform_device smdkv310_lcd_lte480wv = {
161}; 161};
162 162
163static struct s3c_fb_pd_win smdkv310_fb_win0 = { 163static struct s3c_fb_pd_win smdkv310_fb_win0 = {
164 .win_mode = { 164 .max_bpp = 32,
165 .left_margin = 13, 165 .default_bpp = 24,
166 .right_margin = 8, 166 .xres = 800,
167 .upper_margin = 7, 167 .yres = 480,
168 .lower_margin = 5, 168};
169 .hsync_len = 3, 169
170 .vsync_len = 1, 170static struct fb_videomode smdkv310_lcd_timing = {
171 .xres = 800, 171 .left_margin = 13,
172 .yres = 480, 172 .right_margin = 8,
173 }, 173 .upper_margin = 7,
174 .max_bpp = 32, 174 .lower_margin = 5,
175 .default_bpp = 24, 175 .hsync_len = 3,
176 .vsync_len = 1,
177 .xres = 800,
178 .yres = 480,
176}; 179};
177 180
178static struct s3c_fb_platdata smdkv310_lcd0_pdata __initdata = { 181static struct s3c_fb_platdata smdkv310_lcd0_pdata __initdata = {
179 .win[0] = &smdkv310_fb_win0, 182 .win[0] = &smdkv310_fb_win0,
183 .vtiming = &smdkv310_lcd_timing,
180 .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, 184 .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB,
181 .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, 185 .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
182 .setup_gpio = exynos4_fimd0_gpio_setup_24bpp, 186 .setup_gpio = exynos4_fimd0_gpio_setup_24bpp,