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

Commit 46de8f4a authored by Vicky Wallace's avatar Vicky Wallace Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: Add clock measurement support for sdxpoorwills



Add support for the debug mux structure for measuring GCC clocks.

CRs-Fixed: 2155384
Change-Id: Ia2fe58957093a6fbb10f07c097adb0b02edd1077
Signed-off-by: default avatarVicky Wallace <vwallace@codeaurora.org>
parent 14681b57
Loading
Loading
Loading
Loading
+20 −0
Original line number Original line Diff line number Diff line
Qualcomm Technologies, Inc. Debug Clock Controller Binding
----------------------------------------------------------

Required properties :
- compatible : shall contain only one of the following:
			"qcom,debugcc-sdm845"
			"qcom,debugcc-sdxpoorwills"

- clock-names: Shall contain "xo_clk_src"
- clocks: phandle + clock reference to the CXO clock.
- #clock-cells : Shall contain 1.

Example:
	clock_debug: qcom,cc-debug {
		compatible = "qcom,sdxpoorwills";
		qcom,gcc = <&clock_gcc>;
		clock-names = "xo_clk_src";
		clocks = <&clock_rpmh RPMH_CXO_CLK>;
		#clock-cells = <1>;
	};
+0 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,6 @@ Required properties :
			"qcom,gcc-sdm845-v2"
			"qcom,gcc-sdm845-v2"
			"qcom,gcc-sdm845-v2.1"
			"qcom,gcc-sdm845-v2.1"
			"qcom,gcc-sdm670"
			"qcom,gcc-sdm670"
			"qcom,debugcc-sdm845"
			"qcom,gcc-sdxpoorwills"
			"qcom,gcc-sdxpoorwills"


- reg : shall contain base register location and length
- reg : shall contain base register location and length
+9 −0
Original line number Original line Diff line number Diff line
@@ -252,4 +252,13 @@ config MDM_CLOCK_CPU_SDXPOORWILLS
	Say Y if you want to support CPU clock scaling using
	Say Y if you want to support CPU clock scaling using
	CPUfreq drivers for dyanmic power management.
	CPUfreq drivers for dyanmic power management.


config MDM_DEBUGCC_SDXPOORWILLS
	tristate "SDXPOORWILLS Debug Clock Controller"
	depends on COMMON_CLK_QCOM
	help
	  Support for the debug clock controller on sdxpoorwills
	  based devices.
	  Say Y if you want to support the clock measurement
	  functionality.

source "drivers/clk/qcom/mdss/Kconfig"
source "drivers/clk/qcom/mdss/Kconfig"
+1 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,7 @@ obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o
obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o
obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o
obj-$(CONFIG_IPQ_LCC_806X) += lcc-ipq806x.o
obj-$(CONFIG_IPQ_LCC_806X) += lcc-ipq806x.o
obj-$(CONFIG_MDM_CLOCK_CPU_SDXPOORWILLS) += clk-cpu-a7.o
obj-$(CONFIG_MDM_CLOCK_CPU_SDXPOORWILLS) += clk-cpu-a7.o
obj-$(CONFIG_MDM_DEBUGCC_SDXPOORWILLS) += debugcc-sdxpoorwills.o
obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o
obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o
obj-$(CONFIG_MDM_GCC_SDXPOORWILLS) += gcc-sdxpoorwills.o
obj-$(CONFIG_MDM_GCC_SDXPOORWILLS) += gcc-sdxpoorwills.o
obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o
obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o
+1 −0
Original line number Original line Diff line number Diff line
@@ -44,6 +44,7 @@ enum debug_cc {
	GPU_CC,
	GPU_CC,
	VIDEO_CC,
	VIDEO_CC,
	CPU,
	CPU,
	MAX_NUM_CC,
};
};


/**
/**
Loading