{
struct lcdc_device *lcdc_dev = container_of(dev_drv,
struct lcdc_device, driver);
+ struct rk_lcdc_win *win = dev_drv->win[0];
u32 val, mask;
mask = m_WIN0_FORMAT;
lcdc_writel(lcdc_dev, WIN0_YRGB_MST, rgb_mst);
lcdc_cfg_done(lcdc_dev);
+ win->state = 1;
+ win->last_state = 1;
return 0;
}
struct lcdc_device *lcdc_dev = container_of(dev_drv,
struct lcdc_device, driver);
u32 val, mask;
+ struct rk_lcdc_win *win = dev_drv->win[0];
int swap = (format == RGB888) ? 1 : 0;
mask = m_WIN0_DATA_FMT | m_WIN0_RB_SWAP;
lcdc_writel(lcdc_dev, WIN0_YRGB_MST, rgb_mst);
lcdc_cfg_done(lcdc_dev);
+ win->state = 1;
+ win->last_state = 1;
return 0;
}
struct lcdc_device *lcdc_dev = container_of(dev_drv,
struct lcdc_device, driver);
u32 val, mask;
+ struct rk_lcdc_win *win = dev_drv->win[0];
int swap = (format == RGB888) ? 1 : 0;
mask = m_WIN0_DATA_FMT | m_WIN0_RB_SWAP | m_WIN0_Y_MIRROR;
lcdc_writel(lcdc_dev, WIN0_YRGB_MST, rgb_mst);
lcdc_cfg_done(lcdc_dev);
+ win->state = 1;
+ win->last_state = 1;
return 0;
}
win->area[0].yvir = var->yres_virtual;
win->area[0].xoff = xoffset;
win->area[0].yoff = yoffset;
+ win->state = 1;
+ win->last_state = 1;
win->area_num = 1;
win->alpha_mode = 4; /* AB_SRC_OVER; */