lkml.org 
[lkml]   [2022]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v6 4/6] clk: qcom: gpucc-sc7280: Add cx collapse reset support
    Date
    Allow a consumer driver to poll for cx gdsc collapse through Reset
    framework.

    Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    ---

    (no changes since v3)

    Changes in v3:
    - Convert 'struct qcom_reset_ops cx_gdsc_reset' to 'static const' (Krzysztof)

    Changes in v2:
    - Minor update to use the updated custom reset ops implementation

    drivers/clk/qcom/gpucc-sc7280.c | 10 ++++++++++
    1 file changed, 10 insertions(+)

    diff --git a/drivers/clk/qcom/gpucc-sc7280.c b/drivers/clk/qcom/gpucc-sc7280.c
    index 9a832f2..fece3f4 100644
    --- a/drivers/clk/qcom/gpucc-sc7280.c
    +++ b/drivers/clk/qcom/gpucc-sc7280.c
    @@ -433,12 +433,22 @@ static const struct regmap_config gpu_cc_sc7280_regmap_config = {
    .fast_io = true,
    };

    +static const struct qcom_reset_ops cx_gdsc_reset = {
    + .reset = gdsc_wait_for_collapse,
    +};
    +
    +static const struct qcom_reset_map gpucc_sc7280_resets[] = {
    + [GPU_CX_COLLAPSE] = { .ops = &cx_gdsc_reset, .priv = &cx_gdsc },
    +};
    +
    static const struct qcom_cc_desc gpu_cc_sc7280_desc = {
    .config = &gpu_cc_sc7280_regmap_config,
    .clks = gpu_cc_sc7280_clocks,
    .num_clks = ARRAY_SIZE(gpu_cc_sc7280_clocks),
    .gdscs = gpu_cc_sc7180_gdscs,
    .num_gdscs = ARRAY_SIZE(gpu_cc_sc7180_gdscs),
    + .resets = gpucc_sc7280_resets,
    + .num_resets = ARRAY_SIZE(gpucc_sc7280_resets),
    };

    static const struct of_device_id gpu_cc_sc7280_match_table[] = {
    --
    2.7.4
    \
     
     \ /
      Last update: 2022-08-31 07:20    [W:4.195 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site