Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3122291rwb; Mon, 15 Aug 2022 18:40:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6a7tSmh07fW/3DYozO5LtZzrtBSWgDWHOmxkeIya2a9WqEVXr+zK6NutTqNeyM7ftMkoDa X-Received: by 2002:a05:6402:2b98:b0:43e:107:183d with SMTP id fj24-20020a0564022b9800b0043e0107183dmr16937812edb.366.1660614021565; Mon, 15 Aug 2022 18:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614021; cv=none; d=google.com; s=arc-20160816; b=bjREM0svB478uDiGoqjnqjqQ7Ein2BtFgrZLlAGMKH7QJiQRBtND3woDTonHcKZrzZ iEOdvynGcvRVbaqeK+8AqfAJUAsnOqhW3gTyLdWXVeFPyMvbFez08iMrC1jaomvStNxD Sv7CTuL6llkIzrXj1t4840S7VAMy2WTPJ0wpteuceNEyWmu1+IQjoJhOlQLeA0hO0fk4 TIGUwXLf9tURC8IBNdAW5vDKBc59ONGIJF6vKfRWuyTBIUrp1t1a98wov0MglsB1JxNQ Svj+/nDxHJshJkVE17XStGE7F82cP1xpGbsbUhHH39RxF+Gza/z2c+GlrlVQlvbSTvc3 +7Vw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+AvkuPBt7pcQykocY9iGb7mjRes/Rwq9TlGZ3swvnZM=; b=lF947t8lSz0It4UMSD19PYUAf2AZ84zHNojoFLxZ2F9UBYO3flRLFcHQYGoyMj6966 m/yXXzovoSCwRDteU9oHgL7qkQA1umwfOz5HFYfxJThj5IC0A02BwP7qGSI3PzglE1lt 6Dj80RMyNn8vYGMc9+r0vJZ1LhsiJdkAIsch2GJrHxylW5t44mnhEe1BQQg7Izq+x9w8 RFF+r/6pAc4iCGHVYrvPmoTp3+o27xITDecYW1IOSyziCV+Gv+BDOBEIvVYFjXELZB5Z ENj7XWLwN6Qa1D0l47K7ygDtzChHeCWo94RJsclIPoBd6kHkZjXMdd5BXEUnOGAX4yvD jT1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IrAuOuTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l26-20020a50d6da000000b0043e4a0bf811si9018551edj.186.2022.08.15.18.39.55; Mon, 15 Aug 2022 18:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IrAuOuTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351242AbiHPAUH (ORCPT + 99 others); Mon, 15 Aug 2022 20:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357310AbiHPANV (ORCPT ); Mon, 15 Aug 2022 20:13:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C064D176526; Mon, 15 Aug 2022 13:29:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CFE0B61135; Mon, 15 Aug 2022 20:29:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BECA7C433C1; Mon, 15 Aug 2022 20:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595394; bh=/EF4z/uxQCTHAXnRvEbMiDLRJBQ1km36r9FTaXO2r6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IrAuOuTw1z55TcoFopFNZGSiLRyvcv2VQwDLIK8KuMCFC1GawSlwjF2qzrTZm/eeq Jyx57eEPY+4Tu2Lt8TI4LcNu26AtXXH7IhCWBeRNSzRScVXpDWIlTCvDuNnCaoqXS4 tikFTYOGuvRgl4VFApktBhVwZOLrsR8+ETaZ1gvw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan ODonoghue , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 0750/1157] clk: qcom: gcc-msm8939: Add missing system_mm_noc_bfdcd_clk_src Date: Mon, 15 Aug 2022 20:01:46 +0200 Message-Id: <20220815180509.492125676@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bryan O'Donoghue [ Upstream commit dd363e2f7196278e7a30f509a0e8a841cb763b14 ] The msm8939 has an additional higher operating point for the multi-media peripherals. The higher throughput MM componets operate off of the system-mm noc not the system noc. system_mm_noc_bfdcd_clk_src is the source clock for the higher frequency capable system noc mm. Maximum frequency for the MM SNOC is 400 MHz. Fixes: 1664014e4679 ("clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller") Signed-off-by: Bryan O'Donoghue Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220504163835.40130-4-bryan.odonoghue@linaro.org Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-msm8939.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8939.c b/drivers/clk/qcom/gcc-msm8939.c index 31568658d23d..12bab9067ea8 100644 --- a/drivers/clk/qcom/gcc-msm8939.c +++ b/drivers/clk/qcom/gcc-msm8939.c @@ -644,6 +644,18 @@ static struct clk_rcg2 bimc_ddr_clk_src = { }, }; +static struct clk_rcg2 system_mm_noc_bfdcd_clk_src = { + .cmd_rcgr = 0x2600c, + .hid_width = 5, + .parent_map = gcc_xo_gpll0_gpll6a_map, + .clkr.hw.init = &(struct clk_init_data){ + .name = "system_mm_noc_bfdcd_clk_src", + .parent_data = gcc_xo_gpll0_gpll6a_parent_data, + .num_parents = 3, + .ops = &clk_rcg2_ops, + }, +}; + static const struct freq_tbl ftbl_gcc_camss_ahb_clk[] = { F(40000000, P_GPLL0, 10, 1, 2), F(80000000, P_GPLL0, 10, 0, 0), @@ -3623,6 +3635,7 @@ static struct clk_regmap *gcc_msm8939_clocks[] = { [GPLL2_VOTE] = &gpll2_vote, [PCNOC_BFDCD_CLK_SRC] = &pcnoc_bfdcd_clk_src.clkr, [SYSTEM_NOC_BFDCD_CLK_SRC] = &system_noc_bfdcd_clk_src.clkr, + [SYSTEM_MM_NOC_BFDCD_CLK_SRC] = &system_mm_noc_bfdcd_clk_src.clkr, [CAMSS_AHB_CLK_SRC] = &camss_ahb_clk_src.clkr, [APSS_AHB_CLK_SRC] = &apss_ahb_clk_src.clkr, [CSI0_CLK_SRC] = &csi0_clk_src.clkr, -- 2.35.1