Searched refs:imx_ldb (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/gpu/drm/imx/ |
H A D | imx-ldb.c | 53 struct imx_ldb; 56 struct imx_ldb *ldb; 75 struct imx_ldb { struct 149 static void imx_ldb_set_clock(struct imx_ldb *ldb, int mux, int chno, imx_ldb_set_clock() 180 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_prepare() 216 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_commit() 264 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_mode_set() 307 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_encoder_disable() 386 static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno) imx_ldb_get_clk() 404 struct imx_ldb *ldb = imx_ldb_ch->ldb; imx_ldb_register() 514 struct imx_ldb *imx_ldb; imx_ldb_bind() local 519 imx_ldb = devm_kzalloc(dev, sizeof(*imx_ldb), GFP_KERNEL); imx_ldb_bind() 520 if (!imx_ldb) imx_ldb_bind() 523 imx_ldb->regmap = syscon_regmap_lookup_by_phandle(np, "gpr"); imx_ldb_bind() 524 if (IS_ERR(imx_ldb->regmap)) { imx_ldb_bind() 526 return PTR_ERR(imx_ldb->regmap); imx_ldb_bind() 529 imx_ldb->dev = dev; imx_ldb_bind() 532 imx_ldb->lvds_mux = of_id->data; imx_ldb_bind() 536 imx_ldb->ldb_ctrl |= LDB_SPLIT_MODE_EN; imx_ldb_bind() 549 imx_ldb->clk_sel[i] = devm_clk_get(imx_ldb->dev, clkname); imx_ldb_bind() 550 if (IS_ERR(imx_ldb->clk_sel[i])) { imx_ldb_bind() 551 ret = PTR_ERR(imx_ldb->clk_sel[i]); imx_ldb_bind() 552 imx_ldb->clk_sel[i] = NULL; imx_ldb_bind() 556 imx_ldb->clk_parent[i] = clk_get_parent(imx_ldb->clk_sel[i]); imx_ldb_bind() 577 channel = &imx_ldb->channel[i]; for_each_child_of_node() 578 channel->ldb = imx_ldb; for_each_child_of_node() 586 port = of_graph_get_port_by_id(child, imx_ldb->lvds_mux ? 4 : 2); for_each_child_of_node() 636 dev_set_drvdata(dev, imx_ldb); 644 struct imx_ldb *imx_ldb = dev_get_drvdata(dev); imx_ldb_unbind() local 648 struct imx_ldb_channel *channel = &imx_ldb->channel[i]; imx_ldb_unbind()
|
Completed in 87 milliseconds