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

Commit 3ce90111 authored by Kumar Gala's avatar Kumar Gala
Browse files

msm: cache_erp: remove use of MSM_IMEM_BASE



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

Cache error reporting:
-----------------
Required properties:
-compatible: "qti,msm-imem-cache_erp"
-reg: start address and size of cache_erp region in imem

Example:

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

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
		};

		boot_stats@6b0 {
			compatible = "qti,msm-imem-boot_stats";
			reg = <0x6b0 32>;
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ Required properties:
  the L2 cache interrupt number
- interrupt-names: Should contain the interrupt names "l1_irq" and
  "l2_irq"
- qti,msm-imem-phandle: phandle reference to the imem cache erp node

Optional properties:
- reg: A set of I/O regions to be dumped in the event of a hardware fault being
@@ -38,4 +39,6 @@ Example with "reg" property defined:
		compatible = "qti,cache_erp";
		interrupts = <1 9 0>, <0 2 0>;
		interrupt-names = "l1_irq", "l2_irq";

		qti,msm-imem-phandle = <&imem_cache_erp>;
	};
+6 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@
		compatible = "qti,cache_erp";
		interrupts = <1 9 0>, <0 2 0>;
		interrupt-names = "l1_irq", "l2_irq";
		qti,msm-imem-phandle = <&imem_cache_erp>;
	};

	qcom,cache_dump {
@@ -257,6 +258,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
		};

		boot_stats@6b0 {
			compatible = "qti,msm-imem-boot_stats";
			reg = <0x6b0 32>;
+6 −0
Original line number Diff line number Diff line
@@ -291,6 +291,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
		};

		boot_stats@6b0 {
			compatible = "qti,msm-imem-boot_stats";
			reg = <0x6b0 32>;
@@ -306,6 +311,7 @@
		compatible = "qti,cache_erp";
		interrupts = <1 9 0>, <0 2 0>;
		interrupt-names = "l1_irq", "l2_irq";
		qti,msm-imem-phandle = <&imem_cache_erp>;
	};

	qcom,cache_dump {
+5 −0
Original line number Diff line number Diff line
@@ -50,6 +50,11 @@
		#address-cells = <1>;
		#size-cells = <1>;

		imem_cache_erp: cache_erp@6a4 {
			compatible = "qti,msm-imem-cache_erp";
			reg = <0x6a4 4>;
		};

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