screen->ft = 1000 / fps;
dev_info(lcdc_dev->dev, "%s: dclk:%lu>>fps:%d ",
lcdc_dev->driver.name, clk_get_rate(lcdc_dev->dclk), fps);
-
+ if (dev_drv->trsm_ops && dev_drv->trsm_ops->enable)
+ dev_drv->trsm_ops->enable();
if (screen->init)
screen->init();
dev_drv->suspend_flag = 1;
flush_kthread_worker(&dev_drv->update_regs_worker);
-
+
+ if (dev_drv->trsm_ops && dev_drv->trsm_ops->disable)
+ dev_drv->trsm_ops->disable();
spin_lock(&lcdc_dev->reg_lock);
if (likely(lcdc_dev->clk_on)) {
lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_BLANK_EN,
spin_unlock(&lcdc_dev->reg_lock);
}
-
+ if (dev_drv->trsm_ops && dev_drv->trsm_ops->enable)
+ dev_drv->trsm_ops->enable();
return 0;
}
rk_disp_pwr_ctr_parse_dt(dev_drv);
if (dev_drv->prop == PRMRY)
rk_fb_get_prmry_screen(screen);
+ dev_drv->trsm_ops = rk_fb_trsm_ops_get(screen->type);
return 0;
}