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-smartq7.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-smartq7.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq7.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smartq7.c b/arch/arm/mach-s3c64xx/mach-smartq7.c index e5c09b6db967..4e3b0385e868 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq7.c +++ b/arch/arm/mach-s3c64xx/mach-smartq7.c | |||
@@ -124,23 +124,27 @@ static struct platform_device smartq7_buttons_device = { | |||
124 | }; | 124 | }; |
125 | 125 | ||
126 | static struct s3c_fb_pd_win smartq7_fb_win0 = { | 126 | static struct s3c_fb_pd_win smartq7_fb_win0 = { |
127 | .win_mode = { | ||
128 | .left_margin = 3, | ||
129 | .right_margin = 5, | ||
130 | .upper_margin = 1, | ||
131 | .lower_margin = 20, | ||
132 | .hsync_len = 10, | ||
133 | .vsync_len = 3, | ||
134 | .xres = 800, | ||
135 | .yres = 480, | ||
136 | .refresh = 80, | ||
137 | }, | ||
138 | .max_bpp = 32, | 127 | .max_bpp = 32, |
139 | .default_bpp = 16, | 128 | .default_bpp = 16, |
129 | .xres = 800, | ||
130 | .yres = 480, | ||
131 | }; | ||
132 | |||
133 | static struct fb_videomode smartq7_lcd_timing = { | ||
134 | .left_margin = 3, | ||
135 | .right_margin = 5, | ||
136 | .upper_margin = 1, | ||
137 | .lower_margin = 20, | ||
138 | .hsync_len = 10, | ||
139 | .vsync_len = 3, | ||
140 | .xres = 800, | ||
141 | .yres = 480, | ||
142 | .refresh = 80, | ||
140 | }; | 143 | }; |
141 | 144 | ||
142 | static struct s3c_fb_platdata smartq7_lcd_pdata __initdata = { | 145 | static struct s3c_fb_platdata smartq7_lcd_pdata __initdata = { |
143 | .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, | 146 | .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, |
147 | .vtiming = &smartq7_lcd_timing, | ||
144 | .win[0] = &smartq7_fb_win0, | 148 | .win[0] = &smartq7_fb_win0, |
145 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, | 149 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
146 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | | 150 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | |