mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-02 18:54:10 +08:00
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>
This commit is contained in:
parent
be0f6dbca3
commit
b6dbe8e4d5
@ -178,6 +178,8 @@ struct da8xx_fb_par {
|
|||||||
#endif
|
#endif
|
||||||
void (*panel_power_ctrl)(int);
|
void (*panel_power_ctrl)(int);
|
||||||
u32 pseudo_palette[16];
|
u32 pseudo_palette[16];
|
||||||
|
struct fb_videomode mode;
|
||||||
|
struct lcd_ctrl_config cfg;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct fb_var_screeninfo da8xx_fb_var;
|
static struct fb_var_screeninfo da8xx_fb_var;
|
||||||
@ -1310,6 +1312,8 @@ static int fb_probe(struct platform_device *device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fb_videomode_to_var(&da8xx_fb_var, lcdc_info);
|
fb_videomode_to_var(&da8xx_fb_var, lcdc_info);
|
||||||
|
fb_var_to_videomode(&par->mode, &da8xx_fb_var);
|
||||||
|
par->cfg = *lcd_cfg;
|
||||||
|
|
||||||
if (lcd_init(par, lcd_cfg, lcdc_info) < 0) {
|
if (lcd_init(par, lcd_cfg, lcdc_info) < 0) {
|
||||||
dev_err(&device->dev, "lcd_init failed\n");
|
dev_err(&device->dev, "lcd_init failed\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user