Loading Documentation/devicetree/bindings/platform/msm/avtimer.txt 0 → 100644 +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>; }; arch/arm/boot/dts/qcom/msm8996.dtsi +8 −0 Original line number Diff line number Diff line Loading @@ -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>; Loading drivers/platform/msm/avtimer.c +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
Documentation/devicetree/bindings/platform/msm/avtimer.txt 0 → 100644 +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>; };
arch/arm/boot/dts/qcom/msm8996.dtsi +8 −0 Original line number Diff line number Diff line Loading @@ -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>; Loading
drivers/platform/msm/avtimer.c +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading