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-s3c24xx | |
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-s3c24xx')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-smdk2416.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2416.c b/arch/arm/mach-s3c24xx/mach-smdk2416.c index 30a44f806e01..c3100a044fbe 100644 --- a/arch/arm/mach-s3c24xx/mach-smdk2416.c +++ b/arch/arm/mach-s3c24xx/mach-smdk2416.c | |||
@@ -148,23 +148,25 @@ static struct s3c24xx_hsudc_platdata smdk2416_hsudc_platdata = { | |||
148 | 148 | ||
149 | static struct s3c_fb_pd_win smdk2416_fb_win[] = { | 149 | static struct s3c_fb_pd_win smdk2416_fb_win[] = { |
150 | [0] = { | 150 | [0] = { |
151 | /* think this is the same as the smdk6410 */ | ||
152 | .win_mode = { | ||
153 | .pixclock = 41094, | ||
154 | .left_margin = 8, | ||
155 | .right_margin = 13, | ||
156 | .upper_margin = 7, | ||
157 | .lower_margin = 5, | ||
158 | .hsync_len = 3, | ||
159 | .vsync_len = 1, | ||
160 | .xres = 800, | ||
161 | .yres = 480, | ||
162 | }, | ||
163 | .default_bpp = 16, | 151 | .default_bpp = 16, |
164 | .max_bpp = 32, | 152 | .max_bpp = 32, |
153 | .xres = 800, | ||
154 | .yres = 480, | ||
165 | }, | 155 | }, |
166 | }; | 156 | }; |
167 | 157 | ||
158 | static struct fb_videomode smdk2416_lcd_timing = { | ||
159 | .pixclock = 41094, | ||
160 | .left_margin = 8, | ||
161 | .right_margin = 13, | ||
162 | .upper_margin = 7, | ||
163 | .lower_margin = 5, | ||
164 | .hsync_len = 3, | ||
165 | .vsync_len = 1, | ||
166 | .xres = 800, | ||
167 | .yres = 480, | ||
168 | }; | ||
169 | |||
168 | static void s3c2416_fb_gpio_setup_24bpp(void) | 170 | static void s3c2416_fb_gpio_setup_24bpp(void) |
169 | { | 171 | { |
170 | unsigned int gpio; | 172 | unsigned int gpio; |
@@ -187,6 +189,7 @@ static void s3c2416_fb_gpio_setup_24bpp(void) | |||
187 | 189 | ||
188 | static struct s3c_fb_platdata smdk2416_fb_platdata = { | 190 | static struct s3c_fb_platdata smdk2416_fb_platdata = { |
189 | .win[0] = &smdk2416_fb_win[0], | 191 | .win[0] = &smdk2416_fb_win[0], |
192 | .vtiming = &smdk2416_lcd_timing, | ||
190 | .setup_gpio = s3c2416_fb_gpio_setup_24bpp, | 193 | .setup_gpio = s3c2416_fb_gpio_setup_24bpp, |
191 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, | 194 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
192 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, | 195 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, |