Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023452rwb; Mon, 15 Aug 2022 16:21:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+vlpo7WEZIFVmVhDV1FEsYOLByDJ7V0itcu+x77r8tFDFWjY3+lMoe1E+LHXk+fanI4XM X-Received: by 2002:a17:90a:b00f:b0:1f7:67c6:5df5 with SMTP id x15-20020a17090ab00f00b001f767c65df5mr20289643pjq.59.1660605581076; Mon, 15 Aug 2022 16:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605581; cv=none; d=google.com; s=arc-20160816; b=e1jlq45dZNmRrtlOBtNuX9lF6vBKFPCOfLucZ41glt5eLrB5KMDsXf5OZ78EU4x7L0 bkSxeGoAr0Hbqn+53kaE3ifhbFCTunyndZhYa2FI2iMfezTRlzzyCHLNzcyNXnHt2Aps KWWTSMY47dJiXpPdd5djYjh2Dy9zA4bxvb5msrjdwS1R1et2qSihhde6QkKnfYrVZrQa o3s1qmpyX5aNyT6hdbhSkPtWk06GWTNk2+86+mQhyIaUvC7BClwkIsimxFT9CdAit1CP wsuV+PmREOWMut7d+SqPd7e6rZ64aXqRJJ8ITy83BI6U219Fx7l3VYVAMLKqlbzz+va1 4g0g== 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=mv/MBC/St+EduHFR41rVsIcg2qBy/MpiYi4NiNl7Xn2IjM+wfMUFgA5wqjJABlc7BC HEMdaCdH2nEp/wJnC0DBj4wQjHsqB90iiKcuUQ12VjE05fJEG9/oEz0LjxUJcIIWLS6d em8ikRC1NQXy0BlFHKnPYTeuCJrTNrkavgB2iFkT2+D0zzM20l7bPSlms0tbekbKvJQ/ M6Bb+QLAtHmyj8JJPTPo3HiYqf+mIY0PoPvHFTRzN59w9CVVD9GT9sEEseV/QuqZVmEZ y12w47P0tJaig3K8r1hbfPRdpbnb4GvmgUXVXUKIC0lZrbjEDDbGQ9JR1wom3rzBprji ibLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RXdftRpW; 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 k12-20020a056a00168c00b0052d9e5f07d9si9888247pfc.210.2022.08.15.16.19.30; Mon, 15 Aug 2022 16:19:41 -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=RXdftRpW; 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 S1350299AbiHOVwl (ORCPT + 99 others); Mon, 15 Aug 2022 17:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350292AbiHOVrh (ORCPT ); Mon, 15 Aug 2022 17:47:37 -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 1541F5FAEF; Mon, 15 Aug 2022 12:31:47 -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 C33BAB81062; Mon, 15 Aug 2022 19:31:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA91C433D6; Mon, 15 Aug 2022 19:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591904; bh=/EF4z/uxQCTHAXnRvEbMiDLRJBQ1km36r9FTaXO2r6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RXdftRpWbl17hiPcXdmt4fYEW5d9yykT1ix5sVgCrchwKrEd3lsTTtSioPb3i75GQ F5c9F1WeoKR2sCc0jOaLC6aTktSSLaQ6siM5AhhwCEee8LCj0mQkvFtYj+/+aEcOt1 7KqxS1KyYy4CsqK1qjBhDFiRrj+CKSWWc4GT2ZgQ= 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.18 0702/1095] clk: qcom: gcc-msm8939: Add missing system_mm_noc_bfdcd_clk_src Date: Mon, 15 Aug 2022 20:01:41 +0200 Message-Id: <20220815180458.406405612@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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