Lines Matching full:rpmh
14 #include <soc/qcom/rpmh.h>
17 #include <dt-bindings/clock/qcom,rpmh.h>
24 * @unit: divisor used to convert Hz value to an RPMh msg
25 * @width: multiplier used to convert Hz value to an RPMh msg
37 * struct clk_rpmh - individual rpmh clock data structure
39 * @res_name: resource name for the rpmh clock
41 * @res_addr: base address of the rpmh resource within the RPMh
42 * @res_on_val: rpmh clock enable value
43 * @state: rpmh clock requested state
44 * @aggr_state: rpmh clock aggregated state
45 * @last_sent_aggr_state: rpmh clock last aggr state sent to RPMh
46 * @valid_state_mask: mask to determine the state of the rpmh clock
47 * @unit: divisor to convert rate to rpmh msg in magnitudes of Khz
49 * @peer: pointer to the clock rpmh sibling
247 * RPMh clocks have a fixed rate. Return static rate. in clk_rpmh_recalc_rate()
562 struct clk_rpmh_desc *rpmh = data; in of_clk_rpmh_hw_get() local
565 if (idx >= rpmh->num_clks) { in of_clk_rpmh_hw_get()
570 return rpmh->clks[idx]; in of_clk_rpmh_hw_get()
600 dev_err(&pdev->dev, "missing RPMh resource address for %s\n", in clk_rpmh_probe()
609 "error reading RPMh aux data for %s (%d)\n", in clk_rpmh_probe()
636 dev_dbg(&pdev->dev, "Registered RPMh clocks\n"); in clk_rpmh_probe()
642 { .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
643 { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x},
644 { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
645 { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55},
646 { .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350},
647 { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},
648 { .compatible = "qcom,sm8250-rpmh-clk", .data = &clk_rpmh_sm8250},
649 { .compatible = "qcom,sm8350-rpmh-clk", .data = &clk_rpmh_sm8350},
650 { .compatible = "qcom,sc7280-rpmh-clk", .data = &clk_rpmh_sc7280},
658 .name = "clk-rpmh",
675 MODULE_DESCRIPTION("QCOM RPMh Clock Driver");