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

Commit 01102ad0 authored by Kumar Gala's avatar Kumar Gala
Browse files

msm: boot_stats: remove use of MSM_IMEM_BASE



Move to getting address for boot_stats 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.

Additionally move to using io accessors since we are accessing IO memory
instead of direct pointer manipulation.

Change-Id: Ib3d3494612b37e7ee9903d270c80ea929d6a7435
Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
parent 390cc7a8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22,6 +22,12 @@ Required properties:
-compatible: "qti,msm-imem-pil"
-reg: start address and size of PIL region in imem

Bootloader Stats:
-----------------
Required properties:
-compatible: "qti,msm-imem-boot_stats"
-reg: start address and size of boot_stats region in imem

Example:

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

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

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
+5 −0
Original line number Diff line number Diff line
@@ -257,6 +257,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

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

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
+5 −0
Original line number Diff line number Diff line
@@ -291,6 +291,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

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

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
+5 −0
Original line number Diff line number Diff line
@@ -186,6 +186,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

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

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
+5 −0
Original line number Diff line number Diff line
@@ -245,6 +245,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

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

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
Loading