Lines Matching defs:tcon
19 void fsl_tcon_bypass_disable(struct fsl_tcon *tcon)
21 regmap_update_bits(tcon->regs, FSL_TCON_CTRL1,
25 void fsl_tcon_bypass_enable(struct fsl_tcon *tcon)
27 regmap_update_bits(tcon->regs, FSL_TCON_CTRL1,
37 .name = "tcon",
41 struct fsl_tcon *tcon,
54 tcon->regs = devm_regmap_init_mmio(dev, regs,
56 return PTR_ERR_OR_ZERO(tcon->regs);
61 struct fsl_tcon *tcon;
66 np = of_parse_phandle(dev->of_node, "fsl,tcon", 0);
70 tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL);
71 if (!tcon)
74 ret = fsl_tcon_init_regmap(dev, tcon, np);
80 tcon->ipg_clk = of_clk_get_by_name(np, "ipg");
81 if (IS_ERR(tcon->ipg_clk)) {
86 ret = clk_prepare_enable(tcon->ipg_clk);
95 return tcon;
102 void fsl_tcon_free(struct fsl_tcon *tcon)
104 clk_disable_unprepare(tcon->ipg_clk);
105 clk_put(tcon->ipg_clk);