From patchwork Thu Feb 4 15:01:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 12067733 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C8D2C433DB for ; Thu, 4 Feb 2021 16:27:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 423B564F4E for ; Thu, 4 Feb 2021 16:27:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237108AbhBDQ1I (ORCPT ); Thu, 4 Feb 2021 11:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237021AbhBDPBx (ORCPT ); Thu, 4 Feb 2021 10:01:53 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8ED6C0617A9 for ; Thu, 4 Feb 2021 07:00:09 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id l12so3406271wmq.2 for ; Thu, 04 Feb 2021 07:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=28ZBg6HWPIrbV+zPYpH6RT+vX30g3C029HWLCzM+KTU=; b=XWA5TX5+90UYIeU2L4Yh0RIg5dicSIysZDGFObgurM7Qg8TtAxHLu6+dVm6fuZe/yB vkkCL7eVcibRvIxWReLLiI2IRMyoBTbqD7dCAGX2nXyv4qxGpByDDuDMRtsde558Ofjp CgYYKy/TDNel3ky9fYEC/CQaG3w64Jvof0PngGMWLZynWfcqXjrcCOIKYghhiqEQjcia PIrKZ4b/zT6SAffkKK9axbeBfZ+zczdI25VYPmlojGWE0gbWdDOwxuJcgXY94L9qddsE fXBky95IfqYf04JQXFptbJ5crBnfNKcS6P+tVGozRPP+Q9yGmzDd6kH2Q7helJnQrBNe i5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=28ZBg6HWPIrbV+zPYpH6RT+vX30g3C029HWLCzM+KTU=; b=rXbflqOw/TPpkaGuwbXLpgcuJwwRV/HdR7za4v+dVVCjcMC0+RzoLy9NrLnjXn6b0i S+DWMy+aZu9hatOjflxmJLeBd94rVZUfcPJ9d1dXgOdxvTFB5indEa0DZaHCG0tsLM7e c98EgnRnBkMLI09Shd3PRJOHjndXsH8ke5swavDyspT3SC4xzZ72mie7V4lpPgJ87JPg hEJcx0vZO3R7IkpL2FU7VdI6lv76w3k+teWfSyG+Dj8SSOetiA5ixMQ7nN1rX5MJB0vh LTU6kBrRBpGNgLhBqctCr5CUwjLuDO7Sz2fh2+mlpYuAFFwRUkreZRzjG7xj5BswOtG1 Ghhg== X-Gm-Message-State: AOAM530xUadyRf6t1OP8R95BlcsQ5XZ5YFflK8kmXET3IshaSBT29pDa 7zdo9e1+psACxMwnQe8rHHjnIx45JqysOg== X-Google-Smtp-Source: ABdhPJx9ATUPuwuSSUJqvX8E9gV9HDrCv8XsS345fMtp3A0gI98Iv3W3T3VGOy7ldfM7pQXm7HAnKw== X-Received: by 2002:a05:600c:20c6:: with SMTP id y6mr7799946wmm.97.1612450808290; Thu, 04 Feb 2021 07:00:08 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id c11sm8312664wrs.28.2021.02.04.07.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 07:00:07 -0800 (PST) From: Bryan O'Donoghue To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@codeaurora.org, dmitry.baryshkov@linaro.org, stanimir.varbanov@linaro.org Subject: [PATCH v2 2/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_DIV_CLK_SRC Date: Thu, 4 Feb 2021 15:01:18 +0000 Message-Id: <20210204150120.1521959-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210204150120.1521959-1-bryan.odonoghue@linaro.org> References: <20210204150120.1521959-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This patch adds the missing video_cc_mvs0_div_clk_src entry to videocc-sm8250 replicating in upstream the explicit entry for this clock in downstream. Signed-off-by: Bryan O'Donoghue Reviewed-by: Dmitry Baryshkov Tested-by: Dmitry Baryshkov --- drivers/clk/qcom/videocc-sm8250.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index 2797c61f5938..cc84963ced40 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -169,6 +169,21 @@ static struct clk_regmap_div video_cc_mvs0c_div2_div_clk_src = { }, }; +static struct clk_regmap_div video_cc_mvs0_div_clk_src = { + .reg = 0xd54, + .shift = 0, + .width = 2, + .clkr.hw.init = &(struct clk_init_data) { + .name = "video_cc_mvs0_div_clk_src", + .parent_data = &(const struct clk_parent_data){ + .hw = &video_cc_mvs0_clk_src.clkr.hw, + }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, + .ops = &clk_regmap_div_ro_ops, + }, +}; + static struct clk_regmap_div video_cc_mvs1c_div2_div_clk_src = { .reg = 0xcf4, .shift = 0, @@ -276,6 +291,7 @@ static struct gdsc mvs1_gdsc = { static struct clk_regmap *video_cc_sm8250_clocks[] = { [VIDEO_CC_MVS0_CLK_SRC] = &video_cc_mvs0_clk_src.clkr, + [VIDEO_CC_MVS0_DIV_CLK_SRC] = &video_cc_mvs0_div_clk_src.clkr, [VIDEO_CC_MVS0C_CLK] = &video_cc_mvs0c_clk.clkr, [VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC] = &video_cc_mvs0c_div2_div_clk_src.clkr, [VIDEO_CC_MVS1_CLK_SRC] = &video_cc_mvs1_clk_src.clkr,