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

Commit 8ac0a4ed authored by Shefali Jain's avatar Shefali Jain
Browse files

clk: qcom: add support of measure only clock for lito



Add support of mc_cc, ipa_2x_clk, cnoc and snoc
measure only clock to measure the rate at runtime.

Change-Id: I2a7f52acafdfb79e1527e9965a56597f5a4a9777
Signed-off-by: default avatarShefali Jain <shefjain@codeaurora.org>
parent f14c93fb
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -2386,11 +2386,53 @@ static struct clk_dummy perfpcl_clk = {
		.ops = &clk_dummy_ops,
	},
};

/* Measure-only clock for ddrss_gcc_debug_clk. */
static struct clk_dummy measure_only_mccc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_mccc_clk",
		.ops = &clk_dummy_ops,
	},
};


/* Measure-only clock for gcc_cfg_noc_ahb_clk. */
static struct clk_dummy measure_only_cnoc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_cnoc_clk",
		.ops = &clk_dummy_ops,
	},
};

/* Measure-only clock for gcc_ipa_2x_clk. */
static struct clk_dummy measure_only_ipa_2x_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_ipa_2x_clk",
		.ops = &clk_dummy_ops,
	},
};

/* Measure-only clock for gcc_sys_noc_axi_clk. */
static struct clk_dummy measure_only_snoc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_snoc_clk",
		.ops = &clk_dummy_ops,
	},
};

static struct clk_hw *gcc_lito_hws[] = {
	&l3_clk.hw,
	&pwrcl_clk.hw,
	&perfcl_clk.hw,
	&perfpcl_clk.hw,
	&measure_only_mccc_clk.hw,
	&measure_only_cnoc_clk.hw,
	&measure_only_ipa_2x_clk.hw,
	&measure_only_snoc_clk.hw,
};

static struct clk_regmap *gcc_lito_clocks[] = {