Lines Matching full:ost
70 struct ingenic_ost *ost; in ingenic_ost_probe() local
80 ost = devm_kzalloc(dev, sizeof(*ost), GFP_KERNEL); in ingenic_ost_probe()
81 if (!ost) in ingenic_ost_probe()
84 ingenic_ost = ost; in ingenic_ost_probe()
86 ost->regs = devm_platform_ioremap_resource(pdev, 0); in ingenic_ost_probe()
87 if (IS_ERR(ost->regs)) in ingenic_ost_probe()
88 return PTR_ERR(ost->regs); in ingenic_ost_probe()
96 ost->clk = devm_clk_get_enabled(dev, "ost"); in ingenic_ost_probe()
97 if (IS_ERR(ost->clk)) in ingenic_ost_probe()
98 return PTR_ERR(ost->clk); in ingenic_ost_probe()
109 rate = clk_get_rate(ost->clk); in ingenic_ost_probe()
111 /* Enable OST TCU channel */ in ingenic_ost_probe()
114 cs = &ost->cs; in ingenic_ost_probe()
115 cs->name = "ingenic-ost"; in ingenic_ost_probe()
141 struct ingenic_ost *ost = dev_get_drvdata(dev); in ingenic_ost_suspend() local
143 clk_disable(ost->clk); in ingenic_ost_suspend()
150 struct ingenic_ost *ost = dev_get_drvdata(dev); in ingenic_ost_resume() local
152 return clk_enable(ost->clk); in ingenic_ost_resume()
156 /* _noirq: We want the OST clock to be gated last / ungated first */
170 { .compatible = "ingenic,jz4725b-ost", .data = &jz4725b_ost_soc_info, },
171 { .compatible = "ingenic,jz4760b-ost", .data = &jz4760b_ost_soc_info, },
172 { .compatible = "ingenic,jz4770-ost", .data = &jz4760b_ost_soc_info, },
178 .name = "ingenic-ost",