From patchwork Wed Feb 3 11:54:55 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: 375380 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp262218jah; Wed, 3 Feb 2021 03:55:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqz6MXwpVES0S78NawVMbvMf7yD6OyU1lIRjDnNCWLk6q93ZqZFwGtvLscsdajnxPVUB72 X-Received: by 2002:a17:906:fa10:: with SMTP id lo16mr2828813ejb.135.1612353348331; Wed, 03 Feb 2021 03:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612353348; cv=none; d=google.com; s=arc-20160816; b=Q1nW83/PK3csDtVNqVVw1Gp0HEo6BiC7otRYdx29r+vzV53v2tF1Oq7PfFfc1Dv8nD DeDArLHCFjA3zueYEG+Acs2y3tDgZ0yDprsbW5Imnld7iVigOco6+fvpxL0PlGT9Ja9b ccY0lf19scvYjje/koYUBHonnTOzHAyP7Vc1yu1luQNUgyfnwdfOUmLSVfh9nC2U90Rw HJLZHx2utrmmesAeZkT4t7Ab4Oz4yK4F6JqXQhcq8bp7cZUV1/A8x/5J7/l8g07SZpzp Al4/hZ7E9eoHvyrRAF5J6NerAXVmi5QaMQr4b/BN9sQMG4CxV5cPczniGnR0l4CK84A4 mzvw== 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=rZoHRe0oO7IftEQfLmg/yx1mkw4FkCtrh+GE++AIrCc=; b=tEIgK3a59Yjf5vq+QdnfyD9e7cQT4udPKycIUHV7Pz6H3FnwLj40NdM+vpsdVqwKHr nxksGWzbiIdg61pUn1VSeADgLS26Zjt4lfCcgjWSUu9uBKhTWnVk03z7jRp79tLUQ4qH LVviMgRgX3IxLDH6u4OlFPfHM6RH80HFhtC4q6XaGK9vGvXDOHUBMgZbPoZXesa9WqhI qIx8/9pGoTn0UhB3BvnKWyhIbYjj3KAtoawkWi3iV3GJYQ2GRVYTWslS3/YuJMm++EIO hbTLYbj56tXCWDgPWlFCm+MFic+dbYBluWRmBDswzL7mMcaWaFlMJuR88z7YAgD6RH4a Ur7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3XAjlYN; 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 g16si1311499ejf.237.2021.02.03.03.55.48; Wed, 03 Feb 2021 03:55:48 -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=u3XAjlYN; 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 S234125AbhBCLzU (ORCPT + 15 others); Wed, 3 Feb 2021 06:55:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbhBCLzT (ORCPT ); Wed, 3 Feb 2021 06:55:19 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB72C06178C for ; Wed, 3 Feb 2021 03:54:06 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id 7so23922958wrz.0 for ; Wed, 03 Feb 2021 03:54:06 -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=rZoHRe0oO7IftEQfLmg/yx1mkw4FkCtrh+GE++AIrCc=; b=u3XAjlYNYmjzlJxUQppwkvVqWd7kcBoC30eIuieD1Y8q09r6B3fpTSQviYGRmkpW8Z n/geiJLSM1ia+F2DRAJW0QMHJiDI7xVOTZ56Kv29X2gccblYjL39Gb4xotDf5WfjMsF/ vtzekBfUXtvp9Vgsc8AwB0xMuYM2iBvBFMhIeIFg+wn1J5bPHoLnfw5hdUiWNGfEXVSN sNSeHuTvA8eVzvU3V0U9PDWwZtSDgyt6rQ883SyCUe6/36DoiUoE2+tVlB5BwH/Hm5gP IbHEabGULmvpNiPcimD4QryJZGiXIDMYyWnNm/UCOjln85YTaZlFpOFTo3U1Zx/4vm0Q ZYzQ== 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=rZoHRe0oO7IftEQfLmg/yx1mkw4FkCtrh+GE++AIrCc=; b=VCn1R3vdVtDyqYR8Qvli1IiOkRzuUD0o+1KLg5APgyD0JPi58bKIvRanJQCsqJsfIn OMYqUIjJ/7CCbIlkQJip+rLwcPGZYPfehafRoYBVrUsNAbFIv6CCW/QN4Hg2oks2irjQ s6SXFZBcNKVrWtXiZ9PV4dT1IFy3hFMLmvaRS0sM8S1c47R7Uo2VFV6RNil/5P1bGf9+ NpdRhGTkuV/3JSssy/pkWMgyKISEjTR3bLw2LcrI5aGnUdmHRIwaIuebmQYB3HZn5drh 59cmG47ECf+etEr8gssvaJuBfqW60dqQWtnvpE+PuOIk4bEEOXc3iIFrUVBRsIP0VvdA NMHg== X-Gm-Message-State: AOAM532+7uXPa52o6SUZWg+95CZHjzbkx4B8AUK4eFfcrOEvIPBINVsK WknFU00ldqZcP6HcTwye7OtaDw== X-Received: by 2002:a5d:4646:: with SMTP id j6mr3155889wrs.38.1612353245130; Wed, 03 Feb 2021 03:54:05 -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 35sm3687362wrn.42.2021.02.03.03.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:54:04 -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 3/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_CLK Date: Wed, 3 Feb 2021 11:54:55 +0000 Message-Id: <20210203115456.1072975-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org> References: <20210203115456.1072975-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 entry to videocc-sm8250 replicating in upstream the explicit entry for this clock in downstream. Signed-off-by: Bryan O'Donoghue --- drivers/clk/qcom/videocc-sm8250.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.29.2 diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index cc84963ced40..3ade240bd49c 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -217,6 +217,24 @@ static struct clk_branch video_cc_mvs0c_clk = { }, }; +static struct clk_branch video_cc_mvs0_clk = { + .halt_reg = 0xd34, + .halt_check = BRANCH_HALT_VOTED, + .clkr = { + .enable_reg = 0xd34, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "video_cc_mvs0_clk", + .parent_data = &(const struct clk_parent_data){ + .hw = &video_cc_mvs0_div_clk_src.clkr.hw, + }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch video_cc_mvs1_div2_clk = { .halt_reg = 0xdf4, .halt_check = BRANCH_HALT_VOTED, @@ -290,6 +308,7 @@ static struct gdsc mvs1_gdsc = { }; static struct clk_regmap *video_cc_sm8250_clocks[] = { + [VIDEO_CC_MVS0_CLK] = &video_cc_mvs0_clk.clkr, [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,