Home
last modified time | relevance | path

Searched full:p_clk (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-6.6/drivers/clk/hisilicon/
Dclk-hix5hd2.c260 struct hix5hd2_clk_complex *p_clk; in hix5hd2_clk_register_complex() local
264 p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL); in hix5hd2_clk_register_complex()
265 if (!p_clk) in hix5hd2_clk_register_complex()
279 p_clk->ctrl_reg = base + clks[i].ctrl_reg; in hix5hd2_clk_register_complex()
280 p_clk->ctrl_clk_mask = clks[i].ctrl_clk_mask; in hix5hd2_clk_register_complex()
281 p_clk->ctrl_rst_mask = clks[i].ctrl_rst_mask; in hix5hd2_clk_register_complex()
282 p_clk->phy_reg = base + clks[i].phy_reg; in hix5hd2_clk_register_complex()
283 p_clk->phy_clk_mask = clks[i].phy_clk_mask; in hix5hd2_clk_register_complex()
284 p_clk->phy_rst_mask = clks[i].phy_rst_mask; in hix5hd2_clk_register_complex()
285 p_clk->hw.init = &init; in hix5hd2_clk_register_complex()
[all …]
Dclk-hi3559a.c459 struct hi3559av100_clk_pll *p_clk = NULL; in hisi_clk_register_pll() local
464 p_clk = devm_kzalloc(dev, sizeof(*p_clk) * nums, GFP_KERNEL); in hisi_clk_register_pll()
466 if (!p_clk) in hisi_clk_register_pll()
477 p_clk->ctrl_reg1 = base + clks[i].ctrl_reg1; in hisi_clk_register_pll()
478 p_clk->frac_shift = clks[i].frac_shift; in hisi_clk_register_pll()
479 p_clk->frac_width = clks[i].frac_width; in hisi_clk_register_pll()
480 p_clk->postdiv1_shift = clks[i].postdiv1_shift; in hisi_clk_register_pll()
481 p_clk->postdiv1_width = clks[i].postdiv1_width; in hisi_clk_register_pll()
482 p_clk->postdiv2_shift = clks[i].postdiv2_shift; in hisi_clk_register_pll()
483 p_clk->postdiv2_width = clks[i].postdiv2_width; in hisi_clk_register_pll()
[all …]
/kernel/linux/linux-5.10/drivers/clk/hisilicon/
Dclk-hix5hd2.c260 struct hix5hd2_clk_complex *p_clk; in hix5hd2_clk_register_complex() local
264 p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL); in hix5hd2_clk_register_complex()
265 if (!p_clk) in hix5hd2_clk_register_complex()
279 p_clk->ctrl_reg = base + clks[i].ctrl_reg; in hix5hd2_clk_register_complex()
280 p_clk->ctrl_clk_mask = clks[i].ctrl_clk_mask; in hix5hd2_clk_register_complex()
281 p_clk->ctrl_rst_mask = clks[i].ctrl_rst_mask; in hix5hd2_clk_register_complex()
282 p_clk->phy_reg = base + clks[i].phy_reg; in hix5hd2_clk_register_complex()
283 p_clk->phy_clk_mask = clks[i].phy_clk_mask; in hix5hd2_clk_register_complex()
284 p_clk->phy_rst_mask = clks[i].phy_rst_mask; in hix5hd2_clk_register_complex()
285 p_clk->hw.init = &init; in hix5hd2_clk_register_complex()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/cadence/
Dcdns-csi2rx.c69 struct clk *p_clk; member
112 ret = clk_prepare_enable(csi2rx->p_clk); in csi2rx_start()
173 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
182 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
191 clk_prepare_enable(csi2rx->p_clk); in csi2rx_stop()
200 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_stop()
298 csi2rx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2rx_get_resources()
299 if (IS_ERR(csi2rx->p_clk)) { in csi2rx_get_resources()
301 return PTR_ERR(csi2rx->p_clk); in csi2rx_get_resources()
319 clk_prepare_enable(csi2rx->p_clk); in csi2rx_get_resources()
[all …]
Dcdns-csi2tx.c106 struct clk *p_clk; member
445 csi2tx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2tx_get_resources()
446 if (IS_ERR(csi2tx->p_clk)) { in csi2tx_get_resources()
447 dev_err(&pdev->dev, "Couldn't get p_clk\n"); in csi2tx_get_resources()
448 return PTR_ERR(csi2tx->p_clk); in csi2tx_get_resources()
457 clk_prepare_enable(csi2tx->p_clk); in csi2tx_get_resources()
459 clk_disable_unprepare(csi2tx->p_clk); in csi2tx_get_resources()
/kernel/linux/linux-6.6/drivers/media/platform/cadence/
Dcdns-csi2rx.c76 struct clk *p_clk; member
139 ret = clk_prepare_enable(csi2rx->p_clk); in csi2rx_start()
223 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
240 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_start()
249 clk_prepare_enable(csi2rx->p_clk); in csi2rx_stop()
261 clk_disable_unprepare(csi2rx->p_clk); in csi2rx_stop()
365 csi2rx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2rx_get_resources()
366 if (IS_ERR(csi2rx->p_clk)) { in csi2rx_get_resources()
368 return PTR_ERR(csi2rx->p_clk); in csi2rx_get_resources()
387 ret = clk_prepare_enable(csi2rx->p_clk); in csi2rx_get_resources()
[all …]
Dcdns-csi2tx.c107 struct clk *p_clk; member
445 csi2tx->p_clk = devm_clk_get(&pdev->dev, "p_clk"); in csi2tx_get_resources()
446 if (IS_ERR(csi2tx->p_clk)) { in csi2tx_get_resources()
447 dev_err(&pdev->dev, "Couldn't get p_clk\n"); in csi2tx_get_resources()
448 return PTR_ERR(csi2tx->p_clk); in csi2tx_get_resources()
457 ret = clk_prepare_enable(csi2tx->p_clk); in csi2tx_get_resources()
459 dev_err(&pdev->dev, "Couldn't prepare and enable p_clk\n"); in csi2tx_get_resources()
464 clk_disable_unprepare(csi2tx->p_clk); in csi2tx_get_resources()
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/
Dcdns,csi2tx.txt14 * p_clk: register bank clock
49 clock-names = "p_clk", "esc_clk",
Dcdns,csi2rx.yaml38 - const: p_clk
141 clock-names = "sys_clk", "p_clk",
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Dcdns,csi2rx.txt13 * p_clk: register bank clock
50 clock-names = "sys_clk", "p_clk",
Dcdns,csi2tx.txt14 * p_clk: register bank clock
49 clock-names = "p_clk", "esc_clk",
/kernel/linux/patches/linux-5.10/hispark_taurus_patch/
Dhispark_taurus.patch14096 + struct hi3519av100_clk_pll *p_clk = NULL;
14100 + p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL);
14101 + if (!p_clk)
14111 + p_clk->ctrl_reg1 = base + clks[i].ctrl_reg1;
14112 + p_clk->frac_shift = clks[i].frac_shift;
14113 + p_clk->frac_width = clks[i].frac_width;
14114 + p_clk->postdiv1_shift = clks[i].postdiv1_shift;
14115 + p_clk->postdiv1_width = clks[i].postdiv1_width;
14116 + p_clk->postdiv2_shift = clks[i].postdiv2_shift;
14117 + p_clk->postdiv2_width = clks[i].postdiv2_width;
[all …]