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

Commit 46ff458d authored by Tony Truong's avatar Tony Truong Committed by Gerrit - the friendly Code Review server
Browse files

mhi: core: Enable parsing of dev window from dt



Enable parsing of device window size from device tree
and calculating the appropriate addressing limitations.

Change-Id: I252a593a74f0cc00e6295a45d4d13db6c79cdfca
Signed-off-by: default avatarAndrei Danaila <adanaila@codeaurora.org>
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent 8f871ad1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ Required properties:
  - mhi-chan-cfg-#: mhi channel configuration parameters for platform
  - mhi-event-cfg-#: mhi event ring configuration parameters for platform
  - mhi-event-rings: number of event rings supported by platform
  - mhi-dev-address-win-size: size of the MHI device addressing window

Example:

@@ -36,4 +37,5 @@ Example:
		mhi-event-rings = <6>;
		mhi-chan-cfg-102 = <0x66 0x80 0x5 0x62>;
		mhi-event-cfg-0 = <0x80 0x0 0x0 0x11>;
		mhi-dev-address-win-size= <0x10 0x00000000>;
	};
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@
	mhi-event-cfg-2 = <0x80 0x2 0x5 0x11>;
	mhi-event-cfg-3 = <0x100 0x3 0x1 0x9>;
	mhi-event-cfg-4 = <0x100 0x4 0x1 0x8>;
	mhi-dev-address-win-size = <0x10 0x00000000>;
};

&pm8994_mpps {
+1 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@
	mhi-event-cfg-2 = <0x80 0x2 0x5 0x11>;
	mhi-event-cfg-3 = <0x100 0x3 0x1 0x9>;
	mhi-event-cfg-4 = <0x100 0x4 0x1 0x8>;
	mhi-dev-address-win-size = <0x10 0x00000000>;
};

&pm8994_mpps {
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@
	mhi-event-cfg-2 = <0x80 0x2 0x5 0x11>;
	mhi-event-cfg-3 = <0x100 0x3 0x1 0x9>;
	mhi-event-cfg-4 = <0x100 0x4 0x1 0x8>;
	mhi-dev-address-win-size = <0x10 0x00000000>;
};

&pm8994_mpps {
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@
	mhi-event-cfg-2 = <0x80 0x2 0x5 0x11>;
	mhi-event-cfg-3 = <0x100 0x3 0x1 0x9>;
	mhi-event-cfg-4 = <0x100 0x4 0x1 0x8>;
	mhi-dev-address-win-size = <0x10 0x00000000>;
};

&pm8994_mpps {
Loading