Commit da172d2b authored by Taniya Das's avatar Taniya Das Committed by Stephen Boyd

clk: qcom: Move frequency table macro to common file

Frequency table macro is used by multiple clock drivers, move frequency
table macro to common header file.
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent ce397d21
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#include "clk-regmap.h" #include "clk-regmap.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
struct freq_tbl { struct freq_tbl {
unsigned long freq; unsigned long freq;
u8 src; u8 src;
......
...@@ -106,8 +106,6 @@ static const char * const gcc_xo_pcie_sleep[] = { ...@@ -106,8 +106,6 @@ static const char * const gcc_xo_pcie_sleep[] = {
"sleep_clk_src", "sleep_clk_src",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_pll gpll0 = { static struct clk_pll gpll0 = {
.l_reg = 0x0004, .l_reg = 0x0004,
.m_reg = 0x0008, .m_reg = 0x0008,
......
...@@ -179,8 +179,6 @@ static const char * const gcc_xo_ddr_500_200[] = { ...@@ -179,8 +179,6 @@ static const char * const gcc_xo_ddr_500_200[] = {
"ddrpllapss", "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[] = { static const struct freq_tbl ftbl_gcc_audio_pwm_clk[] = {
F(48000000, P_XO, 1, 0, 0), F(48000000, P_XO, 1, 0, 0),
F(200000000, P_FEPLL200, 1, 0, 0), F(200000000, P_FEPLL200, 1, 0, 0),
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "clk-regmap-mux.h" #include "clk-regmap-mux.h"
#include "reset.h" #include "reset.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_XO, P_XO,
P_GPLL0, P_GPLL0,
......
...@@ -264,8 +264,6 @@ static const char * const gcc_xo_gpll1_emclk_sleep[] = { ...@@ -264,8 +264,6 @@ static const char * const gcc_xo_gpll1_emclk_sleep[] = {
"sleep_clk", "sleep_clk",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_pll gpll0 = { static struct clk_pll gpll0 = {
.l_reg = 0x21004, .l_reg = 0x21004,
.m_reg = 0x21008, .m_reg = 0x21008,
......
...@@ -62,8 +62,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = { ...@@ -62,8 +62,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = {
"gpll4_vote", "gpll4_vote",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_pll gpll0 = { static struct clk_pll gpll0 = {
.l_reg = 0x0004, .l_reg = 0x0004,
.m_reg = 0x0008, .m_reg = 0x0008,
......
...@@ -57,8 +57,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = { ...@@ -57,8 +57,6 @@ static const char * const gcc_xo_gpll0_gpll4[] = {
"gpll4", "gpll4",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_fixed_factor xo = { static struct clk_fixed_factor xo = {
.mult = 1, .mult = 1,
.div = 1, .div = 1,
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "reset.h" #include "reset.h"
#include "gdsc.h" #include "gdsc.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_XO, P_XO,
P_GPLL0, P_GPLL0,
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "reset.h" #include "reset.h"
#include "gdsc.h" #include "gdsc.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_AUD_REF_CLK, P_AUD_REF_CLK,
P_CORE_BI_PLL_TEST_SE, P_CORE_BI_PLL_TEST_SE,
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "gdsc.h" #include "gdsc.h"
#include "reset.h" #include "reset.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_BI_TCXO, P_BI_TCXO,
P_AUD_REF_CLK, P_AUD_REF_CLK,
......
...@@ -219,8 +219,6 @@ static const char * const mmcc_xo_mmpll0_1_4_gpll1_0_sleep[] = { ...@@ -219,8 +219,6 @@ static const char * const mmcc_xo_mmpll0_1_4_gpll1_0_sleep[] = {
"sleep_clk_src", "sleep_clk_src",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_pll mmpll0 = { static struct clk_pll mmpll0 = {
.l_reg = 0x0004, .l_reg = 0x0004,
.m_reg = 0x0008, .m_reg = 0x0008,
......
...@@ -184,8 +184,6 @@ static const char * const mmcc_xo_dsibyte_hdmi_edp_gpll0[] = { ...@@ -184,8 +184,6 @@ static const char * const mmcc_xo_dsibyte_hdmi_edp_gpll0[] = {
"dsi1pllbyte", "dsi1pllbyte",
}; };
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
static struct clk_pll mmpll0 = { static struct clk_pll mmpll0 = {
.l_reg = 0x0004, .l_reg = 0x0004,
.m_reg = 0x0008, .m_reg = 0x0008,
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "reset.h" #include "reset.h"
#include "gdsc.h" #include "gdsc.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_XO, P_XO,
P_MMPLL0, P_MMPLL0,
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "clk-pll.h" #include "clk-pll.h"
#include "gdsc.h" #include "gdsc.h"
#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }
enum { enum {
P_BI_TCXO, P_BI_TCXO,
P_CORE_BI_PLL_TEST_SE, P_CORE_BI_PLL_TEST_SE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment