Searched refs:clkdata (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/clk/ |
H A D | clk-wm831x.c | 30 return clkdata->xtal_ena; in wm831x_xtal_is_prepared() 39 if (clkdata->xtal_ena) in wm831x_xtal_recalc_rate() 70 struct wm831x *wm831x = clkdata->wm831x; in wm831x_fll_is_prepared() 87 struct wm831x *wm831x = clkdata->wm831x; in wm831x_fll_prepare() 105 struct wm831x *wm831x = clkdata->wm831x; in wm831x_fll_unprepare() 118 struct wm831x *wm831x = clkdata->wm831x; in wm831x_fll_recalc_rate() 348 struct wm831x_clk *clkdata; in wm831x_clk_probe() local 351 clkdata = devm_kzalloc(&pdev->dev, sizeof(*clkdata), GFP_KERNEL); in wm831x_clk_probe() 352 if (!clkdata) in wm831x_clk_probe() 355 clkdata->wm831x = wm831x; in wm831x_clk_probe() [all …]
|
H A D | clk-tps68470.c | 77 struct tps68470_clkdata *clkdata = to_tps68470_clkdata(hw); in tps68470_clk_is_prepared() local 80 if (regmap_read(clkdata->regmap, TPS68470_REG_PLLCTL, &val)) in tps68470_clk_is_prepared() 88 struct tps68470_clkdata *clkdata = to_tps68470_clkdata(hw); in tps68470_clk_prepare() local 90 regmap_write(clkdata->regmap, TPS68470_REG_CLKCFG1, in tps68470_clk_prepare() 94 regmap_update_bits(clkdata->regmap, TPS68470_REG_PLLCTL, in tps68470_clk_prepare() 108 struct tps68470_clkdata *clkdata = to_tps68470_clkdata(hw); in tps68470_clk_unprepare() local 114 regmap_write(clkdata->regmap, TPS68470_REG_CLKCFG1, 0); in tps68470_clk_unprepare() 119 struct tps68470_clkdata *clkdata = to_tps68470_clkdata(hw); in tps68470_clk_recalc_rate() local 121 return clkdata->rate; in tps68470_clk_recalc_rate() 175 regmap_write(clkdata->regmap, TPS68470_REG_PLLCTL, in tps68470_clk_set_rate() [all …]
|
H A D | clk-twl6040.c | 129 struct twl6040_pdmclk *clkdata; in twl6040_pdmclk_probe() local 132 clkdata = devm_kzalloc(&pdev->dev, sizeof(*clkdata), GFP_KERNEL); in twl6040_pdmclk_probe() 133 if (!clkdata) in twl6040_pdmclk_probe() 136 clkdata->dev = &pdev->dev; in twl6040_pdmclk_probe() 137 clkdata->twl6040 = twl6040; in twl6040_pdmclk_probe() 139 clkdata->pdmclk_hw.init = &twl6040_pdmclk_init; in twl6040_pdmclk_probe() 140 ret = devm_clk_hw_register(&pdev->dev, &clkdata->pdmclk_hw); in twl6040_pdmclk_probe() 144 platform_set_drvdata(pdev, clkdata); in twl6040_pdmclk_probe() 147 &clkdata->pdmclk_hw); in twl6040_pdmclk_probe()
|
/openbmc/linux/drivers/clk/axis/ |
H A D | clk-artpec6.c | 26 static struct artpec6_clkctrl_drvdata *clkdata; variable 52 clkdata = kzalloc(sizeof(*clkdata), GFP_KERNEL); in of_artpec6_clkctrl_setup() 53 if (!clkdata) in of_artpec6_clkctrl_setup() 56 clks = clkdata->clk_table; in of_artpec6_clkctrl_setup() 61 clkdata->syscon_base = of_iomap(np, 0); in of_artpec6_clkctrl_setup() 62 BUG_ON(clkdata->syscon_base == NULL); in of_artpec6_clkctrl_setup() 107 clkdata->clk_data.clks = clkdata->clk_table; in of_artpec6_clkctrl_setup() 121 struct clk **clks = clkdata->clk_table; in artpec6_clkctrl_probe() 149 spin_lock_init(&clkdata->i2scfg_lock); in artpec6_clkctrl_probe() 182 clkdata->syscon_base + 0x14, i, 1, in artpec6_clkctrl_probe() [all …]
|