Lines Matching refs:ost
70 struct ingenic_ost *ost;
80 ost = devm_kzalloc(dev, sizeof(*ost), GFP_KERNEL);
81 if (!ost)
84 ingenic_ost = ost;
86 ost->regs = devm_platform_ioremap_resource(pdev, 0);
87 if (IS_ERR(ost->regs))
88 return PTR_ERR(ost->regs);
96 ost->clk = devm_clk_get(dev, "ost");
97 if (IS_ERR(ost->clk))
98 return PTR_ERR(ost->clk);
100 err = clk_prepare_enable(ost->clk);
113 rate = clk_get_rate(ost->clk);
118 cs = &ost->cs;
119 cs->name = "ingenic-ost";
132 clk_disable_unprepare(ost->clk);
146 struct ingenic_ost *ost = dev_get_drvdata(dev);
148 clk_disable(ost->clk);
155 struct ingenic_ost *ost = dev_get_drvdata(dev);
157 return clk_enable(ost->clk);
175 { .compatible = "ingenic,jz4725b-ost", .data = &jz4725b_ost_soc_info, },
176 { .compatible = "ingenic,jz4760b-ost", .data = &jz4760b_ost_soc_info, },
177 { .compatible = "ingenic,jz4770-ost", .data = &jz4760b_ost_soc_info, },
183 .name = "ingenic-ost",