clk: qcom: Add debug measurement support for the CPU clocks on SDM845
Add support to measure the rate of the l3, power and performance
clock domains on SDM845.
Change-Id: Ifd15acd05c2ff46bcd977742cc9d555ce328d260
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
diff --git a/drivers/clk/qcom/clk-cpu-osm.c b/drivers/clk/qcom/clk-cpu-osm.c
index 035d337..0d73dd8 100644
--- a/drivers/clk/qcom/clk-cpu-osm.c
+++ b/drivers/clk/qcom/clk-cpu-osm.c
@@ -40,6 +40,7 @@
#include "clk-regmap.h"
#include "clk-rcg.h"
#include "clk-voter.h"
+#include "clk-debug.h"
#define OSM_TABLE_SIZE 40
#define SINGLE_CORE 1
@@ -372,6 +373,7 @@
.enable = clk_osm_enable,
.round_rate = clk_osm_round_rate,
.list_rate = clk_osm_list_rate,
+ .debug_init = clk_debug_measure_add,
};
static struct clk_ops clk_ops_core;
@@ -507,6 +509,7 @@
.list_rate = clk_osm_list_rate,
.recalc_rate = l3_clk_recalc_rate,
.set_rate = l3_clk_set_rate,
+ .debug_init = clk_debug_measure_add,
};
static struct clk_init_data osm_clks_init[] = {