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: 9636073 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 D6314601E9 for ; Tue, 21 Mar 2017 06:17:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6FB02018E for ; Tue, 21 Mar 2017 06:17:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B97AC228C9; Tue, 21 Mar 2017 06:17:25 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3FDDB2018E for ; Tue, 21 Mar 2017 06:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wY0tXUI5J9r6Doo69nZgNapOvkDrBvU94NaYoNi40Nc=; b=tziioT6kHJGKzRkqpsiOPmObR5 SqtxvdsWntPWwYrIuzJsyUCwZ+INuSsxhLWi3lAAQA4RYKfGne9pUX++Jiexky+ewVpzCGF+2fc6p RugrkXGOsTf2OGItvs9ibOX8pkqQDsjmuhFZAUp+JFJNcDtH7FRSQ+gzisjijtj9Xs16hB4ik70Am O0ythPnrOqbq1czUwX2hFi4DJWzYMeLNPXtroMxT1WNgAr8FHP05e7UqaYF+3iMiIebwAyDiHhI/H +4jvd9uTCVsGoXyz6COEVP85FymqnnzB33mr7NMhYmIeJOr1UdmgkatpYDcApFbe+sQolyGIFkfQs 9NsIK6ew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqD6a-0002RN-83; Tue, 21 Mar 2017 06:17:16 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqD5d-00011S-BS for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2017 06:16:21 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A4C5460D5F; 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170320_231617_949387_95C7F1B1 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, Rajendra Nayak , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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, };