From patchwork Tue Mar 21 06:15:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9636065 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF03A60327 for ; Tue, 21 Mar 2017 06:16:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0CD1279E0 for ; Tue, 21 Mar 2017 06:16:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B9027CF3; Tue, 21 Mar 2017 06:16:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6609927CAF for ; Tue, 21 Mar 2017 06:16:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756426AbdCUGQo (ORCPT ); Tue, 21 Mar 2017 02:16:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44702 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755783AbdCUGQj (ORCPT ); Tue, 21 Mar 2017 02:16:39 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5439460CA2; Tue, 21 Mar 2017 06:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1490076952; bh=HYD4sCUPhFTzQ7kslbL3jTlVuERuw/aKzpv7DaGe4d4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EZQZ0syL2nlU22KYsGglFk6l4l9UYqchY+9ymh2fFR28Gk8EKojWuVgbjyqSXPO7s 9Aqh4VfP4zezuQH49D732tPbNoJbsa5xBHeCXEtZZsdhZfrGU+7SKTXoua4JlbbWmk haIc2lHe+tHhcJzSG902ASJTrSYgyTrT0d9vELTc= Received: from blr-ubuntu-173.qualcomm.com (unknown [202.46.23.61]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8DFA160D0A; Tue, 21 Mar 2017 06:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1490076952; bh=HYD4sCUPhFTzQ7kslbL3jTlVuERuw/aKzpv7DaGe4d4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EZQZ0syL2nlU22KYsGglFk6l4l9UYqchY+9ymh2fFR28Gk8EKojWuVgbjyqSXPO7s 9Aqh4VfP4zezuQH49D732tPbNoJbsa5xBHeCXEtZZsdhZfrGU+7SKTXoua4JlbbWmk haIc2lHe+tHhcJzSG902ASJTrSYgyTrT0d9vELTc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8DFA160D0A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rajendra Nayak Subject: [PATCH 5/5] clk: qcom: mmcc-8996: Associate all mmagic clks with mmagic gdscs Date: Tue, 21 Mar 2017 11:45:23 +0530 Message-Id: <1490076923-20194-6-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490076923-20194-1-git-send-email-rnayak@codeaurora.org> References: <1490076923-20194-1-git-send-email-rnayak@codeaurora.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With support added to control clocks associated with a gdsc from within the gdsc driver, associate all mmagic clock instances with the respective mmagic gdscs so devices inside these mmagic domains do not have to control them individually. Signed-off-by: Rajendra Nayak --- drivers/clk/qcom/mmcc-msm8996.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/clk/qcom/mmcc-msm8996.c b/drivers/clk/qcom/mmcc-msm8996.c index 9b97246..7c0ffb5 100644 --- a/drivers/clk/qcom/mmcc-msm8996.c +++ b/drivers/clk/qcom/mmcc-msm8996.c @@ -2893,6 +2893,10 @@ enum { .pd = { .name = "mmagic_bimc", }, + .clk_hws = { + &mmagic_bimc_noc_cfg_ahb_clk.clkr.hw, + }, + .clk_count = 1, .pwrsts = PWRSTS_OFF_ON, }; @@ -2902,6 +2906,13 @@ enum { .pd = { .name = "mmagic_video", }, + .clk_hws = { + &mmss_mmagic_ahb_clk.clkr.hw, + &mmss_mmagic_cfg_ahb_clk.clkr.hw, + &mmagic_video_axi_clk.clkr.hw, + &mmagic_video_noc_cfg_ahb_clk.clkr.hw, + }, + .clk_count = 4, .pwrsts = PWRSTS_OFF_ON, .flags = VOTABLE, }; @@ -2912,6 +2923,13 @@ enum { .pd = { .name = "mmagic_mdss", }, + .clk_hws = { + &mmss_mmagic_ahb_clk.clkr.hw, + &mmss_mmagic_cfg_ahb_clk.clkr.hw, + &mmagic_mdss_axi_clk.clkr.hw, + &mmagic_mdss_noc_cfg_ahb_clk.clkr.hw, + }, + .clk_count = 4, .pwrsts = PWRSTS_OFF_ON, .flags = VOTABLE, }; @@ -2922,6 +2940,13 @@ enum { .pd = { .name = "mmagic_camss", }, + .clk_hws = { + &mmss_mmagic_ahb_clk.clkr.hw, + &mmss_mmagic_cfg_ahb_clk.clkr.hw, + &mmagic_camss_axi_clk.clkr.hw, + &mmagic_camss_noc_cfg_ahb_clk.clkr.hw, + }, + .clk_count = 4, .pwrsts = PWRSTS_OFF_ON, .flags = VOTABLE, };