Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
@@ -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,
+0 −2
Original line number Diff line number Diff line
@@ -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),
+0 −2
Original line number Diff line number Diff line
@@ -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,
+0 −2
Original line number Diff line number Diff line
@@ -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,
Loading