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

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

Merge "msm: ipa: add support to read EE from dts"

parents 0882fe5e 83368877
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@ Optional:
- qti,use-a2-service: determine if A2 service will be used
- qti,use-ipa-tethering-bridge: determine if tethering bridge will be used
- qti,use-ipa-bamdma-a2-bridge: determine if a2/ipa hw bridge will be used
- qti,ee: which EE is assigned to (non-secure) APPS from IPA-BAM POV. This
is a number

IPA pipe sub nodes (A2 static pipes configurations):

+6 −0
Original line number Diff line number Diff line
@@ -1832,6 +1832,7 @@ static int ipa_init(const struct ipa_plat_drv_res *resource_p,
	bam_props.summing_threshold = IPA_SUMMING_THRESHOLD;
	bam_props.event_threshold = IPA_EVENT_THRESHOLD;
	bam_props.options |= SPS_BAM_NO_LOCAL_CLK_GATING;
	bam_props.ee = resource_p->ee;

	result = sps_register_bam_device(&bam_props, &ipa_ctx->bam_handle);
	if (result) {
@@ -2316,6 +2317,11 @@ static int get_ipa_dts_configuration(struct platform_device *pdev,
			return -ENODEV;
	}

	result = of_property_read_u32(pdev->dev.of_node, "qti,ee",
			&ipa_drv_res->ee);
	if (result)
		ipa_drv_res->ee = 0;

	return 0;
}

+1 −0
Original line number Diff line number Diff line
@@ -797,6 +797,7 @@ struct ipa_plat_drv_res {
	enum ipa_hw_mode ipa_hw_mode;
	struct a2_mux_pipe_connection a2_to_ipa_pipe;
	struct a2_mux_pipe_connection ipa_to_a2_pipe;
	u32 ee;
};

struct ipa_controller {