writel_relaxed(0x00, lvds->regs + LVDS_CFG_REG_21); /*disable tx*/
writel_relaxed(0xff, lvds->regs + LVDS_CFG_REG_c); /*disable pll*/
clk_disable_unprepare(lvds->clk);
+ clk_disable_unprepare(lvds->pd);
return 0;
}
u32 i,j, val ;
clk_prepare_enable(lvds->clk);
+ clk_prepare_enable(lvds->pd);
screen->type = SCREEN_RGB;
screen->lcdc_id = 1;
dev_err(&pdev->dev, "ioremap reg failed\n");
return PTR_ERR(lvds->regs);
}
- lvds->clk = devm_clk_get(&pdev->dev,NULL);
+ lvds->clk = devm_clk_get(&pdev->dev,"pclk_lvds");
if (IS_ERR(lvds->clk)) {
dev_err(&pdev->dev, "get clk failed\n");
return PTR_ERR(lvds->clk);
}
+ lvds->pd = devm_clk_get(&pdev->dev,"pd_lvds");
+ if (IS_ERR(lvds->pd)) {
+ dev_err(&pdev->dev, "get clk failed\n");
+ return PTR_ERR(lvds->pd);
+ }
rk32_lvds = lvds;
rk_fb_trsm_ops_register(&trsm_lvds_ops,SCREEN_LVDS);
dev_info(&pdev->dev, "rk32 lvds driver probe success\n");