From patchwork Thu Jul 20 04:48:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9853781 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 EFC2E60392 for ; Thu, 20 Jul 2017 04:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D96FC28737 for ; Thu, 20 Jul 2017 04:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD4EE28747; Thu, 20 Jul 2017 04:51:02 +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 4B7B628737 for ; Thu, 20 Jul 2017 04:51:02 +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=r7TL8QF7y6oWMJb9fofi9TJUSjBnFiouyb11SyFZPHI=; b=cHM06eogs/pK2tE9KYXG4sg3xV xNtmPTz5by7/QUeHX0SmHC9EnCJL2q6cUnd07tnxnVkt44qDARkqorz6Cp4aaGKSOXlWQdXhGfPka S2E+IsnFFVqH45hjF/dX5ZzaDhwlCSgprGvDwQoskZadiDtgbE3PWDG51VYJyBoVkGT27s//PZHgn 71E405GdKAczyIdYS2g8NLYFWINOrg7PosOs4lu6odKu/mr3FGa9wYVfRW45jGnv3qb6OZT+MbrOp UU00FxoC0WJXyWBr7ZZmSiD6j9j8F+os48Hhqv7nKXiE08QNxYiySMdvdSbIchkB6oS2JRNRKbfo2 0B3LVsmQ==; 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 1dY3QQ-0008RP-Cz; Thu, 20 Jul 2017 04:50:58 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dY3Ou-0005lg-Ni for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 04:49:33 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EED2861286; Thu, 20 Jul 2017 04:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1500526141; bh=YFhD0+y9pmYsIPwU8S8RW0UnSShEZkzh5pdeegUQggo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ll5RNnbfzTqYzkbyj55nzQNIVyGz+eoAYpG0pgoAOj7pMnCI0rBM/P6J/MigNe7CH pyBosdqHgXFPMpA2XL8EP5nOtyk3SWyzx2Fj5zcgp15Y/CrlIEI5Uks/ma7KmMp/Di 6yt8xkdSEQPN0Iw585jjR+ZXTv6NWCpRAJV6kV8c= Received: from blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (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 063196121B; Thu, 20 Jul 2017 04:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1500526138; bh=YFhD0+y9pmYsIPwU8S8RW0UnSShEZkzh5pdeegUQggo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kSCPl1AuRVsPtTIAxEYAPZbB0DqvOuisvbLviiWL2jbn1C9GOXvIYR0K5auky3eA9 f9nVOL+HTT+wXtA46ZAx+E1V6pb/VkUc4PNEZ/HbHXylTuEWOcuz6ZPIPZswvvaf7S PQxW1dYred/7v51eyMsqI2qsl9ohmcQQYAhUEIL4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 063196121B 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 v2 5/5] clk: qcom: mmcc-8996: Associate all mmagic clks with mmagic gdscs Date: Thu, 20 Jul 2017 10:18:19 +0530 Message-Id: <1500526099-9935-6-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> References: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170719_214925_411307_FFD9E4FC X-CRM114-Status: UNSURE ( 9.62 ) 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: Rajendra Nayak , linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, vivek.gautam@codeaurora.org, 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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/clk/qcom/mmcc-msm8996.c b/drivers/clk/qcom/mmcc-msm8996.c index 352394d..9d2d34b 100644 --- a/drivers/clk/qcom/mmcc-msm8996.c +++ b/drivers/clk/qcom/mmcc-msm8996.c @@ -2902,6 +2902,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 +2919,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 +2936,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, }; @@ -3056,6 +3077,11 @@ enum { .pd = { .name = "gpu_gx", }, + .clk_hws = { + &mmss_mmagic_ahb_clk.clkr.hw, + &mmss_mmagic_cfg_ahb_clk.clkr.hw, + }, + .clk_count = 2, .pwrsts = PWRSTS_OFF_ON, .flags = CLAMP_IO, };