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-s5pv210 | |
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-s5pv210')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 36 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 26 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 24 |
3 files changed, 45 insertions, 41 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index a9ea64e0da0d..7b91bbf887fe 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -96,38 +96,34 @@ static struct s3c2410_uartcfg aquila_uartcfgs[] __initdata = { | |||
96 | 96 | ||
97 | /* Frame Buffer */ | 97 | /* Frame Buffer */ |
98 | static struct s3c_fb_pd_win aquila_fb_win0 = { | 98 | static struct s3c_fb_pd_win aquila_fb_win0 = { |
99 | .win_mode = { | ||
100 | .left_margin = 16, | ||
101 | .right_margin = 16, | ||
102 | .upper_margin = 3, | ||
103 | .lower_margin = 28, | ||
104 | .hsync_len = 2, | ||
105 | .vsync_len = 2, | ||
106 | .xres = 480, | ||
107 | .yres = 800, | ||
108 | }, | ||
109 | .max_bpp = 32, | 99 | .max_bpp = 32, |
110 | .default_bpp = 16, | 100 | .default_bpp = 16, |
101 | .xres = 480, | ||
102 | .yres = 800, | ||
111 | }; | 103 | }; |
112 | 104 | ||
113 | static struct s3c_fb_pd_win aquila_fb_win1 = { | 105 | static struct s3c_fb_pd_win aquila_fb_win1 = { |
114 | .win_mode = { | ||
115 | .left_margin = 16, | ||
116 | .right_margin = 16, | ||
117 | .upper_margin = 3, | ||
118 | .lower_margin = 28, | ||
119 | .hsync_len = 2, | ||
120 | .vsync_len = 2, | ||
121 | .xres = 480, | ||
122 | .yres = 800, | ||
123 | }, | ||
124 | .max_bpp = 32, | 106 | .max_bpp = 32, |
125 | .default_bpp = 16, | 107 | .default_bpp = 16, |
108 | .xres = 480, | ||
109 | .yres = 800, | ||
110 | }; | ||
111 | |||
112 | static struct fb_videomode aquila_lcd_timing = { | ||
113 | .left_margin = 16, | ||
114 | .right_margin = 16, | ||
115 | .upper_margin = 3, | ||
116 | .lower_margin = 28, | ||
117 | .hsync_len = 2, | ||
118 | .vsync_len = 2, | ||
119 | .xres = 480, | ||
120 | .yres = 800, | ||
126 | }; | 121 | }; |
127 | 122 | ||
128 | static struct s3c_fb_platdata aquila_lcd_pdata __initdata = { | 123 | static struct s3c_fb_platdata aquila_lcd_pdata __initdata = { |
129 | .win[0] = &aquila_fb_win0, | 124 | .win[0] = &aquila_fb_win0, |
130 | .win[1] = &aquila_fb_win1, | 125 | .win[1] = &aquila_fb_win1, |
126 | .vtiming = &aquila_lcd_timing, | ||
131 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, | 127 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
132 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | | 128 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | |
133 | VIDCON1_INV_VCLK | VIDCON1_INV_VDEN, | 129 | VIDCON1_INV_VCLK | VIDCON1_INV_VDEN, |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 2cf5ed75f390..07a840de9a38 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -105,25 +105,29 @@ static struct s3c2410_uartcfg goni_uartcfgs[] __initdata = { | |||
105 | 105 | ||
106 | /* Frame Buffer */ | 106 | /* Frame Buffer */ |
107 | static struct s3c_fb_pd_win goni_fb_win0 = { | 107 | static struct s3c_fb_pd_win goni_fb_win0 = { |
108 | .win_mode = { | ||
109 | .left_margin = 16, | ||
110 | .right_margin = 16, | ||
111 | .upper_margin = 2, | ||
112 | .lower_margin = 28, | ||
113 | .hsync_len = 2, | ||
114 | .vsync_len = 1, | ||
115 | .xres = 480, | ||
116 | .yres = 800, | ||
117 | .refresh = 55, | ||
118 | }, | ||
119 | .max_bpp = 32, | 108 | .max_bpp = 32, |
120 | .default_bpp = 16, | 109 | .default_bpp = 16, |
110 | .xres = 480, | ||
111 | .yres = 800, | ||
121 | .virtual_x = 480, | 112 | .virtual_x = 480, |
122 | .virtual_y = 2 * 800, | 113 | .virtual_y = 2 * 800, |
123 | }; | 114 | }; |
124 | 115 | ||
116 | static struct fb_videomode goni_lcd_timing = { | ||
117 | .left_margin = 16, | ||
118 | .right_margin = 16, | ||
119 | .upper_margin = 2, | ||
120 | .lower_margin = 28, | ||
121 | .hsync_len = 2, | ||
122 | .vsync_len = 1, | ||
123 | .xres = 480, | ||
124 | .yres = 800, | ||
125 | .refresh = 55, | ||
126 | }; | ||
127 | |||
125 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { | 128 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { |
126 | .win[0] = &goni_fb_win0, | 129 | .win[0] = &goni_fb_win0, |
130 | .vtiming = &goni_lcd_timing, | ||
127 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB | | 131 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB | |
128 | VIDCON0_CLKSEL_LCD, | 132 | VIDCON0_CLKSEL_LCD, |
129 | .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN | 133 | .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 91d4ad8bcc73..5e0c9559d4b3 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -189,22 +189,26 @@ static struct platform_device smdkv210_lcd_lte480wv = { | |||
189 | }; | 189 | }; |
190 | 190 | ||
191 | static struct s3c_fb_pd_win smdkv210_fb_win0 = { | 191 | static struct s3c_fb_pd_win smdkv210_fb_win0 = { |
192 | .win_mode = { | ||
193 | .left_margin = 13, | ||
194 | .right_margin = 8, | ||
195 | .upper_margin = 7, | ||
196 | .lower_margin = 5, | ||
197 | .hsync_len = 3, | ||
198 | .vsync_len = 1, | ||
199 | .xres = 800, | ||
200 | .yres = 480, | ||
201 | }, | ||
202 | .max_bpp = 32, | 192 | .max_bpp = 32, |
203 | .default_bpp = 24, | 193 | .default_bpp = 24, |
194 | .xres = 800, | ||
195 | .yres = 480, | ||
196 | }; | ||
197 | |||
198 | static struct fb_videomode smdkv210_lcd_timing = { | ||
199 | .left_margin = 13, | ||
200 | .right_margin = 8, | ||
201 | .upper_margin = 7, | ||
202 | .lower_margin = 5, | ||
203 | .hsync_len = 3, | ||
204 | .vsync_len = 1, | ||
205 | .xres = 800, | ||
206 | .yres = 480, | ||
204 | }; | 207 | }; |
205 | 208 | ||
206 | static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = { | 209 | static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = { |
207 | .win[0] = &smdkv210_fb_win0, | 210 | .win[0] = &smdkv210_fb_win0, |
211 | .vtiming = &smdkv210_lcd_timing, | ||
208 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, | 212 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
209 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, | 213 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, |
210 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, | 214 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, |