diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-03-24 12:28:48 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-04-09 12:11:24 -0400 |
commit | 79d3c41ae444fb064cc8aab7cb249f577d6e0aae (patch) | |
tree | 3bb1e422478e9d0eb6065e56f7f9cafdb0a6d7e0 /arch/arm/mach-s3c64xx/mach-smartq5.c | |
parent | 884924be2a3368a3ac96587f347f9973c80140f6 (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-s3c64xx/mach-smartq5.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq5.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smartq5.c b/arch/arm/mach-s3c64xx/mach-smartq5.c index 3f42431d4dda..03a2f88aabe1 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq5.c +++ b/arch/arm/mach-s3c64xx/mach-smartq5.c | |||
@@ -108,23 +108,27 @@ static struct platform_device smartq5_buttons_device = { | |||
108 | }; | 108 | }; |
109 | 109 | ||
110 | static struct s3c_fb_pd_win smartq5_fb_win0 = { | 110 | static struct s3c_fb_pd_win smartq5_fb_win0 = { |
111 | .win_mode = { | ||
112 | .left_margin = 216, | ||
113 | .right_margin = 40, | ||
114 | .upper_margin = 35, | ||
115 | .lower_margin = 10, | ||
116 | .hsync_len = 1, | ||
117 | .vsync_len = 1, | ||
118 | .xres = 800, | ||
119 | .yres = 480, | ||
120 | .refresh = 80, | ||
121 | }, | ||
122 | .max_bpp = 32, | 111 | .max_bpp = 32, |
123 | .default_bpp = 16, | 112 | .default_bpp = 16, |
113 | .xres = 800, | ||
114 | .yres = 480, | ||
115 | }; | ||
116 | |||
117 | static struct fb_videomode smartq5_lcd_timing = { | ||
118 | .left_margin = 216, | ||
119 | .right_margin = 40, | ||
120 | .upper_margin = 35, | ||
121 | .lower_margin = 10, | ||
122 | .hsync_len = 1, | ||
123 | .vsync_len = 1, | ||
124 | .xres = 800, | ||
125 | .yres = 480, | ||
126 | .refresh = 80, | ||
124 | }; | 127 | }; |
125 | 128 | ||
126 | static struct s3c_fb_platdata smartq5_lcd_pdata __initdata = { | 129 | static struct s3c_fb_platdata smartq5_lcd_pdata __initdata = { |
127 | .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, | 130 | .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, |
131 | .vtiming = &smartq5_lcd_timing, | ||
128 | .win[0] = &smartq5_fb_win0, | 132 | .win[0] = &smartq5_fb_win0, |
129 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, | 133 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
130 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | | 134 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | |