]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clocks: qcom: Add clock enable callback support
authorSumit Garg <sumit.garg@linaro.org>
Thu, 4 Aug 2022 14:27:14 +0000 (19:57 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 26 Aug 2022 14:55:45 +0000 (10:55 -0400)
Drivers like USB, ethernet etc. uses ".enable" hook to enable clocks.
So add corresponding support for Qcom clock drivers.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
arch/arm/mach-snapdragon/clock-apq8016.c
arch/arm/mach-snapdragon/clock-apq8096.c
arch/arm/mach-snapdragon/clock-qcs404.c
arch/arm/mach-snapdragon/clock-sdm845.c
arch/arm/mach-snapdragon/clock-snapdragon.c

index 6e4a0ccb90a15158c72c0ae888c62cb7f47716e9..23a37a1714dce883257b5f4a1e9eae6b4dc0c159 100644 (file)
@@ -111,3 +111,8 @@ ulong msm_set_rate(struct clk *clk, ulong rate)
                return 0;
        }
 }
+
+int msm_enable(struct clk *clk)
+{
+       return 0;
+}
index e5011be8f2e2086340c2f0208d2110bf89aa1e0c..66184596d5625b32700d716a2da8ffa45e145fdb 100644 (file)
@@ -93,3 +93,8 @@ ulong msm_set_rate(struct clk *clk, ulong rate)
                return 0;
        }
 }
+
+int msm_enable(struct clk *clk)
+{
+       return 0;
+}
index bb8a6fe06775c499cc8c26459daf10912b260ca9..230d7779a7b44c80599c1cadca272ae269417f6d 100644 (file)
@@ -77,3 +77,8 @@ ulong msm_set_rate(struct clk *clk, ulong rate)
 
        return 0;
 }
+
+int msm_enable(struct clk *clk)
+{
+       return 0;
+}
index f69be8089835e2b8895b819d5dc848b4340e130c..d6df0365afcaeba911cba6f165fed5283b54824d 100644 (file)
@@ -91,3 +91,8 @@ ulong msm_set_rate(struct clk *clk, ulong rate)
                return 0;
        }
 }
+
+int msm_enable(struct clk *clk)
+{
+       return 0;
+}
index 5652d2fa36ec2802d4db15ab276e46b4b44db92e..fda7098274f808d3bed2d4aefe8325c037e1af88 100644 (file)
@@ -20,6 +20,7 @@
 #define CBCR_BRANCH_OFF_BIT     BIT(31)
 
 extern ulong msm_set_rate(struct clk *clk, ulong rate);
+extern int msm_enable(struct clk *clk);
 
 /* Enable clock controlled by CBC soft macro */
 void clk_enable_cbc(phys_addr_t cbcr)
@@ -126,8 +127,14 @@ static ulong msm_clk_set_rate(struct clk *clk, ulong rate)
        return msm_set_rate(clk, rate);
 }
 
+static int msm_clk_enable(struct clk *clk)
+{
+       return msm_enable(clk);
+}
+
 static struct clk_ops msm_clk_ops = {
        .set_rate = msm_clk_set_rate,
+       .enable = msm_clk_enable,
 };
 
 static const struct udevice_id msm_clk_ids[] = {