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

Commit 0327a91c authored by Kumar Gala's avatar Kumar Gala
Browse files

msm: restart: remove use restart_reason use of MSM_IMEM_BASE



Move to getting address for restart_reason 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: I308f45fe776a05638e2e1b960bd038c6826d7903
Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
parent 6b222c3c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -40,6 +40,12 @@ Required properties:
-compatible: "qti,msm-imem-mem_dump_table"
-reg: start address and size of mem_dump_table region in imem

Restart Reason:
---------------
Required properties:
-compatible: "qti,msm-imem-restart_reason
-reg: start address and size of restart_reason region in imem

Example:

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

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
		};

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
+5 −0
Original line number Diff line number Diff line
@@ -263,6 +263,11 @@
			reg = <0x14 4>;
		};

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
		};

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
+5 −0
Original line number Diff line number Diff line
@@ -296,6 +296,11 @@
			reg = <0x14 4>;
		};

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
		};

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
+5 −0
Original line number Diff line number Diff line
@@ -191,6 +191,11 @@
			reg = <0x14 4>;
		};

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
		};

		boot_stats@6b0 {
			compatible = "qti,msm-imem-boot_stats";
			reg = <0x6b0 32>;
+5 −0
Original line number Diff line number Diff line
@@ -250,6 +250,11 @@
			reg = <0x14 4>;
		};

		restart_reason@65c {
			compatible = "qti,msm-imem-restart_reason";
			reg = <0x65c 4>;
		};

		boot_stats@6b0 {
			compatible = "qti,msm-imem-boot_stats";
			reg = <0x6b0 32>;
Loading