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: 376293 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1432591jah; Thu, 4 Feb 2021 08:28:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAxZa4t+MxqIruyW3YSD8/H66SFLf6WvP3o6tsx1zzyK2gJi4uZhpvWBMOE0AU4stTUInl X-Received: by 2002:a17:906:2681:: with SMTP id t1mr8932775ejc.29.1612456121657; Thu, 04 Feb 2021 08:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612456121; cv=none; d=google.com; s=arc-20160816; b=E0mv3uvz657WJkSM8Yk6VQlpzPPVHpLd3T10HFKD4muALKloPJyn88G3cZHPuU80y0 R+XPsuQ3En0RawT4ATd17NpYVQXftJx4KfEx8JUYW4jfZcbOaUyWwq0p9OYCrAwnQ+uD j+b5CtF5mu+OHSgscpb3IKFapTj7S/K0Rce1dm5PpFjWAkTEBE+V0sLUeR8LFEtTeX98 eCmJpQZSonQztNG81USctQQHx9DhJUuBlg1tSSENQnicdwkzu/va7KFNrsCEinfDl4vC spC9PV/aNPwY9eftyN1Z0uNWxMcRZK4mz9zUM6bI2iBaTBfidQkgBVV/Fu+YXR9qS0jP obug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=28ZBg6HWPIrbV+zPYpH6RT+vX30g3C029HWLCzM+KTU=; b=kK14awBuuQX4OIUehZZbZyBtewj7K2EnWdnsDxDNahZim1iZ465wdFYiN1YdKb5AKU oZEk01VsQOAcNsoJog9eRMCx6XDaFKngAfCD201Y2twavRF++Ad6LhilrKfVvGVxJl/M yUV2/CgiCdbCDW2DR3rJqS2uQzyuTb5qcEJh4ia05QHKG65x2e0QV1o0VHQAUwqdFiX6 0Bfu1i+hWrtHMz8djncZ09JJ8MOzHnrZzhTWf8zki+D6foQ5QieCTssi8JlTwRa5B4/e U1bkfztco6Vmmt9tPDxiMN7nnV5iqvj/WOCw/DeBGVjSLsw+txfJic7gRF8lGoR4yZYt F7Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XWA5TX5+; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj18si3400045ejb.161.2021.02.04.08.28.40; Thu, 04 Feb 2021 08:28:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XWA5TX5+; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237978AbhBDQ1R (ORCPT + 16 others); Thu, 4 Feb 2021 11:27:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236960AbhBDPBr (ORCPT ); Thu, 4 Feb 2021 10:01:47 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 928B7C0617A7 for ; Thu, 4 Feb 2021 07:00:09 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id t142so1228316wmt.1 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=k+7Wsnd/cp0PYaBXuDHdAEM3r9oa5zjMhHs7/p3siv3QaEdVXzQy6lrUSwj17JhlFo D8KE5BRipYpH0bXpmgiNxZUNI4ODsuEVoqO07pvC11j+cmSGvZYr0MbqjqDczb784CWB fLiFOeKVuPDmgFVhFALxNLWX0K6+0e2v/IpCQ9MucSsm4aV4ms6pG4rjz5HICNPnn0D8 jb3/7TU09pedZhPhhiKri+Ng9dYuaXC4SRlubPQ9wZ7IoQpBJsvj2jwxNRuLv5YiYlSB BgDWolK9O1MDJVjWMMpt4gbbMS214Vcs9nfxKGhhT2FA3oi3+MwaZCxeqdh91qPBI/vM mmAQ== X-Gm-Message-State: AOAM533V6E6qc5OfeMG9KRBupwHPdJTPacoavR5DlQ0OY81qAcllqgOa rG6jkQJPLZ9g/rPZUSRVqlCa/Q== 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-arm-msm@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(+) -- 2.29.2 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,