Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2918571rwb; Mon, 15 Aug 2022 14:03:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4rHymLt4gZrVGw/SGQNHK4x5AZ/A9+61R9fRLKLMLKgd8u6TM0kOumRCwMcs8c+y5eSnb8 X-Received: by 2002:a17:902:7689:b0:170:8b17:37f4 with SMTP id m9-20020a170902768900b001708b1737f4mr18813205pll.42.1660597393776; Mon, 15 Aug 2022 14:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597393; cv=none; d=google.com; s=arc-20160816; b=Zc8E/MjOdP+pEAbl0Dbk3Bq/vXjAOJabNVKXzYSTcnxm5kg0cTh05wZ6M5SEzodX2n TpzjSUFQz6Ebo1K41fWeVHP2/4g5mdfy2FPUKMtJDDGO7FBHh3lpS9pxb5ypOKLoHgW8 qSnCXZEKJYx9QQioVbLPV9Zedq3tsnmpOgbZN6wtCZYf4+TTAC/Er9OKbS0z/62V7Be8 pOmLdzJRxQY8j8WWouHI81DxRLPz5jTrdARgtbLPgp9SNH+pRnAOLZ4JGNTIJoYIVh4B HxcdNxPLC5ReWeIzpzvUwrbqZSw0dMRMq/DIVrLCKrMKSRJviPbBE+xYZkmXL02pOKN6 KrAQ== 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=somhl7V5rPoeN9zcjCh7bxcSFVfEXyTte+zwONw3Idc4arjTDuGkm5tIOvfE5+ZGOW iRCW+ArdaQOmgASdJszRXFaUSERIix4ovk+brCXD7yT9vZ8w+qTpUoL1lO7pV6N0RzYM 8jzC0mP2gbybbkxUseMONuRtiUuCkpUd0DldWL7xKXv6fQtFzhubLjPuW9QknQsfqv1H PuK0xSJVWJt5litG8E03+0kyfBI9EMVj95rXx42dx/E5q+kEe6+cCt8mb4NbDuiUPRXt FbwZrQ4/mpYFM5Y3W1oCoDwD/wyBNE4Qmbr00QV42h8Mj5qcqKH/pz0aWiWl+cDaQLIm avHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jhjOeEHM; 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 j4-20020a17090adc8400b001f0311d12d0si15056660pjv.185.2022.08.15.14.02.57; Mon, 15 Aug 2022 14:03:13 -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=jhjOeEHM; 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 S1343852AbiHOTNS (ORCPT + 99 others); Mon, 15 Aug 2022 15:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343656AbiHOTJs (ORCPT ); Mon, 15 Aug 2022 15:09:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C07FE18358; Mon, 15 Aug 2022 11:36:14 -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 ams.source.kernel.org (Postfix) with ESMTPS id 85485B8105C; Mon, 15 Aug 2022 18:36:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3011C433C1; Mon, 15 Aug 2022 18:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588572; bh=/EF4z/uxQCTHAXnRvEbMiDLRJBQ1km36r9FTaXO2r6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhjOeEHMCBEo7v/3+xz/btrQjlzfQRC6IGVPhxQ++1yOOFRF7M8UigstjJ5ZJ9RkJ Y+NnogTfWeWZUkOcaHFO0x4dWC62VB8VV0Z5Q/lEkJ6JgFrzjt5mOt3onYm0oUDW62 T4R0QxrySX7SGrDZcLrr+DIGwfjtDSqVUvkyrMlI= 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.15 446/779] clk: qcom: gcc-msm8939: Add missing system_mm_noc_bfdcd_clk_src Date: Mon, 15 Aug 2022 20:01:30 +0200 Message-Id: <20220815180356.333258001@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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