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

Commit 71d620b6 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: debugcc-scuba: Add support for GNOC clock measure"

parents 29efc809 39c98a5b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@ static const char *const gcc_debug_mux_parent_names[] = {
	"measure_only_hwkm_ahb_clk",
	"measure_only_pka_core_clk",
	"measure_only_pka_ahb_clk",
	"measure_only_cpuss_gnoc_clk",
};

static int gcc_debug_mux_sels[] = {
@@ -308,6 +309,7 @@ static int gcc_debug_mux_sels[] = {
	0xA2,		/* measure_only_hwkm_ahb_clk */
	0xA3,		/* measure_only_pka_core_clk */
	0xA4,		/* measure_only_pka_ahb_clk */
	0xA6,		/* measure_only_cpuss_gnoc_clk */
};

static struct clk_debug_mux gcc_debug_mux = {
@@ -487,6 +489,14 @@ static struct clk_dummy measure_only_pka_ahb_clk = {
	},
};

static struct clk_dummy measure_only_cpuss_gnoc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_cpuss_gnoc_clk",
		.ops = &clk_dummy_ops,
	},
};

static struct clk_hw *debugcc_scuba_hws[] = {
	&pwrcl_clk.hw,
	&measure_only_cnoc_clk.hw,
@@ -499,6 +509,7 @@ static struct clk_hw *debugcc_scuba_hws[] = {
	&measure_only_hwkm_ahb_clk.hw,
	&measure_only_pka_core_clk.hw,
	&measure_only_pka_ahb_clk.hw,
	&measure_only_cpuss_gnoc_clk.hw,
};

static const struct of_device_id clk_debug_match_table[] = {