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

Commit 6b6cc078 authored by Kumar Gala's avatar Kumar Gala
Browse files

msm: restart: remove {emergency_}download_mode use of MSM_IMEM_BASE



Move to getting address for {emergency_}download_mode region of IMEM from
the device tree and mapping via ioremap.  This removes a usage of
MSM_IMEM_BASE which will allow removal of the static IO mappings.

Change-Id: Ibe6d9238dd3c38c8037d157f82e0512a8bad5772
Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
parent 0327a91c
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -46,6 +46,17 @@ Required properties:
-compatible: "qti,msm-imem-restart_reason
-reg: start address and size of restart_reason region in imem

Download Mode:
--------------
Required properties:
-compatible: "qti,msm-imem-download_mode"
-reg: start address and size of download_mode region in imem

Emergency Download Mode:
------------------------
-compatible: "qti,msm-imem-emergency_download_mode"
-reg: start address and size of emergency_download_mode region in imem

Example:

	qti,msm-imem {
@@ -55,6 +66,11 @@ Example:
		#address-cells = <1>;
		#size-cells = <1>;

		download_mode@0 {
			compatible = "qti,msm-imem-download_mode";
			reg = <0x0 8>;
		};

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
@@ -74,4 +90,9 @@ Example:
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};

		emergency_download_mode@fe0 {
			compatible = "qti,msm-imem-emergency_download_mode";
			reg = <0xfe0 12>;
		};
	};
+10 −0
Original line number Diff line number Diff line
@@ -258,6 +258,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		download_mode@0 {
			compatible = "qti,msm-imem-download_mode";
			reg = <0x0 8>;
		};

		mem_dump_table@14 {
			compatible = "qti,msm-imem-mem_dump_table";
			reg = <0x14 4>;
@@ -282,6 +287,11 @@
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};

		emergency_download_mode@fe0 {
			compatible = "qti,msm-imem-emergency_download_mode";
			reg = <0xfe0 12>;
		};
	};

	qcom,msm-rtb {
+10 −0
Original line number Diff line number Diff line
@@ -291,6 +291,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		download_mode@0 {
			compatible = "qti,msm-imem-download_mode";
			reg = <0x0 8>;
		};

		mem_dump_table@14 {
			compatible = "qti,msm-imem-mem_dump_table";
			reg = <0x14 4>;
@@ -315,6 +320,11 @@
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};

		emergency_download_mode@fe0 {
			compatible = "qti,msm-imem-emergency_download_mode";
			reg = <0xfe0 12>;
		};
	};

	qti,cache_erp {
+10 −0
Original line number Diff line number Diff line
@@ -186,6 +186,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		download_mode@0 {
			compatible = "qti,msm-imem-download_mode";
			reg = <0x0 8>;
		};

		mem_dump_table@14 {
			compatible = "qti,msm-imem-mem_dump_table";
			reg = <0x14 4>;
@@ -205,6 +210,11 @@
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};

		emergency_download_mode@fe0 {
			compatible = "qti,msm-imem-emergency_download_mode";
			reg = <0xfe0 12>;
		};
	};

	qcom,usbbam@f9a44000 {
+10 −0
Original line number Diff line number Diff line
@@ -245,6 +245,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		download_mode@0 {
			compatible = "qti,msm-imem-download_mode";
			reg = <0x0 8>;
		};

		mem_dump_table@14 {
			compatible = "qti,msm-imem-mem_dump_table";
			reg = <0x14 4>;
@@ -264,6 +269,11 @@
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};

		emergency_download_mode@fe0 {
			compatible = "qti,msm-imem-emergency_download_mode";
			reg = <0xfe0 12>;
		};
	};

	qcom,sps@f9984000 {
Loading