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

Commit 67281711 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "avtimer: Update the avtimer clock division name"

parents cb645ec1 030de8d4
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
* avtimer

Avtimer provides an interface for clients to enable avtimer block
on qdsp6. 64 bit AVtimer exposed by qdsp6 is used for audio and video
stream synchronization during capture and playback usecases.

Required properties:
- reg : physical address and length of avtimer register
- reg-names : AVtimer register name
  Required register resource entries are:
  "avtimer_lsb_addr" : AVtimer lsb physical address
  "avtimer_msb_addr" : AVtimer msb physical address
- compatible : Must be "qcom,avtimer"

Optional properties:
- clk-div : The clk is at 27MHz and hence ticks are to be
 divided by 27 to achive the msec value.

Example:
	qcom,avtimer@90f7000 {
		compatible = "qcom,avtimer";
		reg = <0x90f700c 0x4>,
		      <0x90f7010 0x4>;
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		qcom,clk-div = <27>;
	};
+8 −0
Original line number Diff line number Diff line
@@ -3527,6 +3527,14 @@
		};
	};

	qcom,avtimer@90f7000 {
		compatible = "qcom,avtimer";
		reg = <0x90f700c 0x4>,
		      <0x90f7010 0x4>;
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		qcom,clk-div = <27>;
	};

	mcd {
		compatible = "qcom,mcd";
		qcom,ce-hw-instance = <0>;
+1 −1
Original line number Diff line number Diff line
@@ -457,7 +457,7 @@ static int dev_avtimer_probe(struct platform_device *pdev)
			__func__, major);

	if (of_property_read_u32(pdev->dev.of_node,
			"qcom,clk_div", &clk_div_val))
			"qcom,clk-div", &clk_div_val))
		avtimer.clk_div = 1;
	else
		avtimer.clk_div = clk_div_val;