clk: qcom: gdsc: Add the missing BIMC gdsc for msm8996
authorRajendra Nayak <rnayak@codeaurora.org>
Tue, 16 Aug 2016 07:25:48 +0000 (12:55 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 19 Aug 2016 19:55:19 +0000 (12:55 -0700)
Add BIMC gdsc data found in MMCC part of msm8996 family of devices.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/mmcc-msm8996.c
include/dt-bindings/clock/qcom,mmcc-msm8996.h

index 847dd9dadeca611d837241c208e61be7806cea88..18220458ee6ce866a6c35d2052c00fb8b1a2f1cb 100644 (file)
@@ -2888,6 +2888,14 @@ static struct clk_hw *mmcc_msm8996_hws[] = {
        &gpll0_div.hw,
 };
 
+static struct gdsc mmagic_bimc_gdsc = {
+       .gdscr = 0x529c,
+       .pd = {
+               .name = "mmagic_bimc",
+       },
+       .pwrsts = PWRSTS_OFF_ON,
+};
+
 static struct gdsc mmagic_video_gdsc = {
        .gdscr = 0x119c,
        .gds_hw_ctrl = 0x120c,
@@ -3201,6 +3209,7 @@ static struct clk_regmap *mmcc_msm8996_clocks[] = {
 };
 
 static struct gdsc *mmcc_msm8996_gdscs[] = {
+       [MMAGIC_BIMC_GDSC] = &mmagic_bimc_gdsc,
        [MMAGIC_VIDEO_GDSC] = &mmagic_video_gdsc,
        [MMAGIC_MDSS_GDSC] = &mmagic_mdss_gdsc,
        [MMAGIC_CAMSS_GDSC] = &mmagic_camss_gdsc,
index 7d3a7fa1a1bd81635bcd6f3c82f71f0f0cb9b3e5..5abc445ad8152d7bc847cba177f1a85e633ffdbd 100644 (file)
 #define FD_GDSC                        12
 #define MDSS_GDSC              13
 #define GPU_GX_GDSC            14
+#define MMAGIC_BIMC_GDSC       15
 
 #endif