From mboxrd@z Thu Jan 1 00:00:00 1970 From: rnayak@codeaurora.org (Rajendra Nayak) Date: Thu, 20 Jul 2017 10:18:19 +0530 Subject: [PATCH v2 5/5] clk: qcom: mmcc-8996: Associate all mmagic clks with mmagic gdscs In-Reply-To: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> References: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> Message-ID: <1500526099-9935-6-git-send-email-rnayak@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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, }; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation