clk: qcom: Move frequency table macro to common file
authorTaniya Das <tdas@codeaurora.org>
Sat, 23 Jun 2018 14:19:25 +0000 (19:49 +0530)
committerStephen Boyd <sboyd@kernel.org>
Fri, 6 Jul 2018 23:45:51 +0000 (16:45 -0700)
Frequency table macro is used by multiple clock drivers, move frequency
table macro to common header file.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
14 files changed:
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/gcc-apq8084.c
drivers/clk/qcom/gcc-ipq4019.c
drivers/clk/qcom/gcc-ipq8074.c
drivers/clk/qcom/gcc-msm8916.c
drivers/clk/qcom/gcc-msm8974.c
drivers/clk/qcom/gcc-msm8994.c
drivers/clk/qcom/gcc-msm8996.c
drivers/clk/qcom/gcc-msm8998.c
drivers/clk/qcom/gcc-sdm845.c
drivers/clk/qcom/mmcc-apq8084.c
drivers/clk/qcom/mmcc-msm8974.c
drivers/clk/qcom/mmcc-msm8996.c
drivers/clk/qcom/videocc-sdm845.c

index b209a2fe86b96cfbd472e7209cd157e3113cd195..dbd5a9e8355416a9edabeb09d474f7e9005a85c4 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/clk-provider.h>
 #include "clk-regmap.h"
 
+#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
+
 struct freq_tbl {
        unsigned long freq;
        u8 src;
index 486d9610355c653eb034e99833beacb6d63baf33..9c99a71ea71e7282b8d4d6542d4e2e519928e821 100644 (file)
@@ -106,8 +106,6 @@ static const char * const gcc_xo_pcie_sleep[] = {
        "sleep_clk_src",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_pll gpll0 = {
        .l_reg = 0x0004,
        .m_reg = 0x0008,
index 46cb256b4aa23919e47fcf79e60b8e3103d680c0..8902ad42ba87ef0c9d982ac69f14c83ab474d0e7 100644 (file)
@@ -179,8 +179,6 @@ static const char * const gcc_xo_ddr_500_200[] = {
        "ddrpllapss",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static const struct freq_tbl ftbl_gcc_audio_pwm_clk[] = {
        F(48000000, P_XO, 1, 0, 0),
        F(200000000, P_FEPLL200, 1, 0, 0),
index 0462f4a8c93205af3a0b39eb01c905c18775d31d..505c6263141d9e31fd7ff325976aa569dab7adfa 100644 (file)
@@ -32,8 +32,6 @@
 #include "clk-regmap-mux.h"
 #include "reset.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_XO,
        P_GPLL0,
index d6c7f50ba86a3db6168799296466757d31c5b711..ac2b0aa1e8b5df26e8ab9fcbb4aa30648dba05e9 100644 (file)
@@ -264,8 +264,6 @@ static const char * const gcc_xo_gpll1_emclk_sleep[] = {
        "sleep_clk",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_pll gpll0 = {
        .l_reg = 0x21004,
        .m_reg = 0x21008,
index 348e30da4f18db105945d4baed75bee3d97da328..08e2900d172c4511975238bb9c7adc7e83322fd6 100644 (file)
@@ -62,8 +62,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = {
        "gpll4_vote",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_pll gpll0 = {
        .l_reg = 0x0004,
        .m_reg = 0x0008,
index 1e38efc37180953e6e4d7de35061b7a15cde1556..53f0f369a33ed7c70ddbbe65ee934cfad81dbf24 100644 (file)
@@ -57,8 +57,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = {
        "gpll4",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_fixed_factor xo = {
        .mult = 1,
        .div = 1,
index 9f35b3fe1d9731f78fcd095cc544274a3c1c872a..9d3756cb93bcce91ec67f1a84cd4217f2ec42877 100644 (file)
@@ -32,8 +32,6 @@
 #include "reset.h"
 #include "gdsc.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_XO,
        P_GPLL0,
index 78d87f5c70985a638d0683f0518689b2b409fb41..9f0ae403d5f53eb54ede64891e4a6cc573f04e6e 100644 (file)
@@ -25,8 +25,6 @@
 #include "reset.h"
 #include "gdsc.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_AUD_REF_CLK,
        P_CORE_BI_PLL_TEST_SE,
index e78e6f5b99fcc1b700372674bebfd7b909a2bce6..19b470fd7b521c2e84d317738f27d480b4d16706 100644 (file)
@@ -25,8 +25,6 @@
 #include "gdsc.h"
 #include "reset.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_BI_TCXO,
        P_AUD_REF_CLK,
index 30777f9f1a439eef1ad5e8d4446017d7f3999392..4ce1d7c88377fb75d7b7d2223f833fcb6614e3ef 100644 (file)
@@ -219,8 +219,6 @@ static const char * const mmcc_xo_mmpll0_1_4_gpll1_0_sleep[] = {
        "sleep_clk_src",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_pll mmpll0 = {
        .l_reg = 0x0004,
        .m_reg = 0x0008,
index 715e7cd94125e4188b7b5c39b02f23c9021be653..91818516c3e0c3c0b1b476c06714a18d1b15225a 100644 (file)
@@ -184,8 +184,6 @@ static const char * const mmcc_xo_dsibyte_hdmi_edp_gpll0[] = {
        "dsi1pllbyte",
 };
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 static struct clk_pll mmpll0 = {
        .l_reg = 0x0004,
        .m_reg = 0x0008,
index 1a25ee4f3658672bc8f4a4bc8c55c0492289ea61..60f08b378291de507bbcfac31dcef2da6f2a941b 100644 (file)
@@ -34,8 +34,6 @@
 #include "reset.h"
 #include "gdsc.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_XO,
        P_MMPLL0,
index 9073b7a710ac61b3dc52d9a7c2b02bcf74845f01..5d6a7724a194880e87f1aa02b6f1d7ee2721ffae 100644 (file)
@@ -18,8 +18,6 @@
 #include "clk-pll.h"
 #include "gdsc.h"
 
-#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
-
 enum {
        P_BI_TCXO,
        P_CORE_BI_PLL_TEST_SE,