Lines Matching defs:imx_ldb
50 struct imx_ldb;
53 struct imx_ldb *ldb;
87 struct imx_ldb {
102 struct imx_ldb *ldb = imx_ldb_ch->ldb;
158 static void imx_ldb_set_clock(struct imx_ldb *ldb, int mux, int chno,
189 struct imx_ldb *ldb = imx_ldb_ch->ldb;
249 struct imx_ldb *ldb = imx_ldb_ch->ldb;
307 struct imx_ldb *ldb = imx_ldb_ch->ldb;
405 static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno)
423 struct imx_ldb *ldb = imx_ldb_ch->ldb;
578 struct imx_ldb *imx_ldb;
583 imx_ldb = dev_get_drvdata(dev);
584 memset(imx_ldb, 0, sizeof(*imx_ldb));
586 imx_ldb->regmap = syscon_regmap_lookup_by_phandle(np, "gpr");
587 if (IS_ERR(imx_ldb->regmap)) {
589 return PTR_ERR(imx_ldb->regmap);
593 regmap_write(imx_ldb->regmap, IOMUXC_GPR2, 0);
595 imx_ldb->dev = dev;
598 imx_ldb->lvds_mux = of_id->data;
602 imx_ldb->ldb_ctrl |= LDB_SPLIT_MODE_EN;
615 imx_ldb->clk_sel[i] = devm_clk_get(imx_ldb->dev, clkname);
616 if (IS_ERR(imx_ldb->clk_sel[i])) {
617 ret = PTR_ERR(imx_ldb->clk_sel[i]);
618 imx_ldb->clk_sel[i] = NULL;
622 imx_ldb->clk_parent[i] = clk_get_parent(imx_ldb->clk_sel[i]);
645 channel = &imx_ldb->channel[i];
646 channel->ldb = imx_ldb;
654 imx_ldb->lvds_mux ? 4 : 2, 0,
702 struct imx_ldb *imx_ldb = dev_get_drvdata(dev);
706 struct imx_ldb_channel *channel = &imx_ldb->channel[i];
720 struct imx_ldb *imx_ldb;
722 imx_ldb = devm_kzalloc(&pdev->dev, sizeof(*imx_ldb), GFP_KERNEL);
723 if (!imx_ldb)
726 platform_set_drvdata(pdev, imx_ldb);