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

Commit 58bd07d9 authored by Shashank Mittal's avatar Shashank Mittal Committed by Matt Wagantall
Browse files

soc: qcom: dcc: add support for DCC driver



DCC (Data Capture and Compare) is a DMA engine which is used to save
configuration data or system memory contents during catastrophic failure
or SW trigger.

It can also perform CRC over the same configuration or memory space.

Change-Id: Ic8a804250ab8b7ac501bd186d2e6f7506bb9b21a
Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent 54a77849
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
* Data Capture and Compare (DCC)

DCC (Data Capture and Compare) is a DMA engine, which is used to save
configuration data or system memory contents during catastrophic failure or
SW trigger.
It can also perform CRC over the same configuration or memory space.

Required properties:

- compatible : name of the component used for driver matching, should be
	       "qcom,dcc"

- reg : physical base address and length of the register set(s) and SRAM
	of the component.

- reg-names : names corresponding to each reg property value.

Optional properties:

- qcom,save-reg: boolean, To save dcc registers state in memory after dcc
		 enable and disable

- qcom,data-sink: string, To specify default data sink for dcc, should be one
		  of the following:
		  "atb"	  : To send captured data over ATB to a trace sink
		  "sram"  : To save captured data in dcc internal SRAM.

Example:

	dcc: dcc@4b3000 {
		compatible = "qcom,dcc";
		reg = <0x4b3000 0x1000>,
		      <0x4b4000 0x2000>;
		reg-names = "dcc-base", "dcc-ram-base";

		clocks = <&clock_gcc clk_gcc_dcc_ahb_clk>;
		clock-names = "dcc_clk";

		qcom,save-reg;
	};
+7 −0
Original line number Diff line number Diff line
@@ -379,6 +379,13 @@ config MSM_QMI_INTERFACE
	  to perform QMI message marshaling and transport them over IPC
	  Router.

config MSM_DCC
	bool "MSM Data Capture and Compare enigne support"
	help
	  This option enables driver for Data Capture and Compare engine. DCC
	  driver provides interface to configure DCC block and read back
	  captured data from DCC's internal SRAM.

config MSM_IPC_ROUTER_SMD_XPRT
	depends on MSM_SMD
	depends on IPC_ROUTER
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ obj-$(CONFIG_MSM_CPUSS_DUMP) += cpuss_dump.o
obj-$(CONFIG_MSM_MEMORY_DUMP) += memory_dump.o
obj-$(CONFIG_MSM_MEMORY_DUMP_V2) += memory_dump_v2.o
obj-$(CONFIG_MSM_DDR_HEALTH) += ddr-health.o
obj-$(CONFIG_MSM_DCC) += dcc.o
obj-$(CONFIG_MSM_WATCHDOG_V2) += watchdog_v2.o
obj-$(CONFIG_MSM_COMMON_LOG) += common_log.o
obj-$(CONFIG_MSM_CPU_PWR_CTL) += cpu_pwr_ctl.o

drivers/soc/qcom/dcc.c

0 → 100644
+1010 −0

File added.

Preview size limit exceeded, changes collapsed.