aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2013-08-05 18:02:24 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-09 07:02:41 -0400
commitb6dbe8e4d578997711097c77fb4538c00a541b62 (patch)
treee0978d7f831fc2cd428530fcec30bb2f5f1ecd3b /drivers/video
parentbe0f6dbca39036213893d8b83a7779d96844c144 (diff)
video: da8xx-fb: store current display information
store current videomode and controller data so that reconfiguring can be done easily. Reconfiguring would be required in fb_set_par, which is going to be added soon. If these details are not stored, the work probe does to retrieve these information would have to repeated at the place of reconfiguring and modifying platform data would be necessary to handle controller data changes like bpp. Signed-off-by: Afzal Mohammed <afzal@ti.com> Signed-off-by: Darren Etheridge <detheridge@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/da8xx-fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 18834faabc33..d060f14b888d 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -178,6 +178,8 @@ struct da8xx_fb_par {
178#endif 178#endif
179 void (*panel_power_ctrl)(int); 179 void (*panel_power_ctrl)(int);
180 u32 pseudo_palette[16]; 180 u32 pseudo_palette[16];
181 struct fb_videomode mode;
182 struct lcd_ctrl_config cfg;
181}; 183};
182 184
183static struct fb_var_screeninfo da8xx_fb_var; 185static struct fb_var_screeninfo da8xx_fb_var;
@@ -1310,6 +1312,8 @@ static int fb_probe(struct platform_device *device)
1310 } 1312 }
1311 1313
1312 fb_videomode_to_var(&da8xx_fb_var, lcdc_info); 1314 fb_videomode_to_var(&da8xx_fb_var, lcdc_info);
1315 fb_var_to_videomode(&par->mode, &da8xx_fb_var);
1316 par->cfg = *lcd_cfg;
1313 1317
1314 if (lcd_init(par, lcd_cfg, lcdc_info) < 0) { 1318 if (lcd_init(par, lcd_cfg, lcdc_info) < 0) {
1315 dev_err(&device->dev, "lcd_init failed\n"); 1319 dev_err(&device->dev, "lcd_init failed\n");