int *cbase = (int *)lcdc_dev->regs;
if (lcdc_dev->pre_init)
return 0;
-
+#ifdef CONFIG_RK_FPGA
lcdc_dev->hclk = devm_clk_get(lcdc_dev->dev, "hclk_lcdc");
lcdc_dev->aclk = devm_clk_get(lcdc_dev->dev, "aclk_lcdc");
lcdc_dev->dclk = devm_clk_get(lcdc_dev->dev, "dclk_lcdc");
dev_err(lcdc_dev->dev, "failed to get lcdc%d clk source\n",
lcdc_dev->id);
}
-
+#endif
/*uboot display has enabled lcdc in boot */
if (!support_uboot_display()) {
rk_disp_pwr_enable(dev_drv);
return -ENOMEM;
}
- strcpy(win->name, def_win->name);
- win->id = def_win->id;
- win->support_3d = def_win->support_3d;
+ strcpy(win->name, def_win[i].name);
+ win->id = def_win[i].id;
+ win->support_3d = def_win[i].support_3d;
dev_drv->win[i] = win;
}
extern bool is_prmry_rk_lcdc_registered(void);
extern int rk_fb_prase_timing_dt(struct device_node *np,
struct rk_screen *screen);
-
+#ifdef CONFIG_RK_FPGA
static int inline support_uboot_display(void)
{
return 0;
}
-
+#endif
extern int rk_disp_prase_timing_dt(struct rk_lcdc_driver *dev_drv);
extern int rk_fb_dpi_open(bool open);