Lines Matching full:mpll

3  * MStar MSC313 MPLL driver
47 struct msc313_mpll *mpll = to_mpll(hw); in msc313_mpll_recalc_rate() local
51 regmap_field_read(mpll->input_div, &input_div); in msc313_mpll_recalc_rate()
52 regmap_field_read(mpll->output_div, &output_div); in msc313_mpll_recalc_rate()
53 regmap_field_read(mpll->loop_div_first, &loop_first); in msc313_mpll_recalc_rate()
54 regmap_field_read(mpll->loop_div_second, &loop_second); in msc313_mpll_recalc_rate()
74 struct msc313_mpll *mpll; in msc313_mpll_probe() local
82 mpll = devm_kzalloc(dev, sizeof(*mpll), GFP_KERNEL); in msc313_mpll_probe()
83 if (!mpll) in msc313_mpll_probe()
94 mpll->input_div = devm_regmap_field_alloc(dev, regmap, config1_input_div_first); in msc313_mpll_probe()
95 if (IS_ERR(mpll->input_div)) in msc313_mpll_probe()
96 return PTR_ERR(mpll->input_div); in msc313_mpll_probe()
97 mpll->output_div = devm_regmap_field_alloc(dev, regmap, config2_output_div_first); in msc313_mpll_probe()
98 if (IS_ERR(mpll->output_div)) in msc313_mpll_probe()
99 return PTR_ERR(mpll->output_div); in msc313_mpll_probe()
100 mpll->loop_div_first = devm_regmap_field_alloc(dev, regmap, config1_loop_div_first); in msc313_mpll_probe()
101 if (IS_ERR(mpll->loop_div_first)) in msc313_mpll_probe()
102 return PTR_ERR(mpll->loop_div_first); in msc313_mpll_probe()
103 mpll->loop_div_second = devm_regmap_field_alloc(dev, regmap, config2_loop_div_second); in msc313_mpll_probe()
104 if (IS_ERR(mpll->loop_div_second)) in msc313_mpll_probe()
105 return PTR_ERR(mpll->loop_div_second); in msc313_mpll_probe()
107 mpll->clk_data = devm_kzalloc(dev, struct_size(mpll->clk_data, hws, in msc313_mpll_probe()
109 if (!mpll->clk_data) in msc313_mpll_probe()
116 mpll->clk_hw.init = &clk_init; in msc313_mpll_probe()
118 ret = devm_clk_hw_register(dev, &mpll->clk_hw); in msc313_mpll_probe()
122 mpll->clk_data->num = NUMOUTPUTS; in msc313_mpll_probe()
123 mpll->clk_data->hws[0] = &mpll->clk_hw; in msc313_mpll_probe()
134 mpll->clk_data->hws[i + 1] = divhw; in msc313_mpll_probe()
137 platform_set_drvdata(pdev, mpll); in msc313_mpll_probe()
140 mpll->clk_data); in msc313_mpll_probe()
144 { .compatible = "mstar,msc313-mpll", },
150 .name = "mstar-msc313-mpll",