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

Commit b95469bb authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: dwc3-msm: Add support to read gadget IMOD value from devicetree



Add support to read default value of interrupt moderation
interval from devicetree parameter "qcom,gadget-imod-val".

Change-Id: I8e4ecaebdb67a13cc29fac9fef5dafea7f30b0e3
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 2caff144
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ Optional properties :
- qcom,no-vbus-vote-with-type-C: If present, then do not try to get and enable VBUS
	regulator in type-C host mode from dwc3-msm driver.
- qcom,connector-type-uAB: HW platform is using micro-AB USB connector type.
- qcom,gadget-imod-val: If present, specifies default value of interrupt moderation in
	usecs for normal EPs.

Sub nodes:
- Sub node for "DWC3- USB3 controller".
+3 −0
Original line number Diff line number Diff line
@@ -3908,6 +3908,9 @@ static int dwc3_msm_probe(struct platform_device *pdev)
		mdwc->pm_qos_latency = 0;
	}

	of_property_read_u32(node, "qcom,gadget-imod-val",
					&dwc3_gadget_imod_val);

	mdwc->no_vbus_vote_type_c = of_property_read_bool(node,
					"qcom,no-vbus-vote-with-type-C");