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-exynos/mach-universal_c210.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-exynos/mach-universal_c210.c')
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 6bb9dbdd73fd..879c539923cf 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -812,25 +812,29 @@ static struct i2c_board_info i2c1_devs[] __initdata = { | |||
812 | 812 | ||
813 | /* Frame Buffer */ | 813 | /* Frame Buffer */ |
814 | static struct s3c_fb_pd_win universal_fb_win0 = { | 814 | static struct s3c_fb_pd_win universal_fb_win0 = { |
815 | .win_mode = { | ||
816 | .left_margin = 16, | ||
817 | .right_margin = 16, | ||
818 | .upper_margin = 2, | ||
819 | .lower_margin = 28, | ||
820 | .hsync_len = 2, | ||
821 | .vsync_len = 1, | ||
822 | .xres = 480, | ||
823 | .yres = 800, | ||
824 | .refresh = 55, | ||
825 | }, | ||
826 | .max_bpp = 32, | 815 | .max_bpp = 32, |
827 | .default_bpp = 16, | 816 | .default_bpp = 16, |
817 | .xres = 480, | ||
818 | .yres = 800, | ||
828 | .virtual_x = 480, | 819 | .virtual_x = 480, |
829 | .virtual_y = 2 * 800, | 820 | .virtual_y = 2 * 800, |
830 | }; | 821 | }; |
831 | 822 | ||
823 | static struct fb_videomode universal_lcd_timing = { | ||
824 | .left_margin = 16, | ||
825 | .right_margin = 16, | ||
826 | .upper_margin = 2, | ||
827 | .lower_margin = 28, | ||
828 | .hsync_len = 2, | ||
829 | .vsync_len = 1, | ||
830 | .xres = 480, | ||
831 | .yres = 800, | ||
832 | .refresh = 55, | ||
833 | }; | ||
834 | |||
832 | static struct s3c_fb_platdata universal_lcd_pdata __initdata = { | 835 | static struct s3c_fb_platdata universal_lcd_pdata __initdata = { |
833 | .win[0] = &universal_fb_win0, | 836 | .win[0] = &universal_fb_win0, |
837 | .vtiming = &universal_lcd_timing, | ||
834 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB | | 838 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB | |
835 | VIDCON0_CLKSEL_LCD, | 839 | VIDCON0_CLKSEL_LCD, |
836 | .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN | 840 | .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN |