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

Commit b15f5368 authored by Kumar Gala's avatar Kumar Gala
Browse files

msm: pil: remove use of MSM_IMEM_BASE



Move to getting address for PIL 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: I1321c978e4c102bfafcfb1a1c04464e31ae59943
Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
parent 9af769f1
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -7,9 +7,32 @@ Required properties
-compatible: "qti,msm-imem"
-reg: start address and size of imem memory

If any children nodes exist the following properties are required:
-#address-cells: should be 1
-#size-cells: should be 1
-ranges: A triplet that includes the child address, parent address, &
	 length.  The child address is assumed to be 0.

Child nodes:
------------

Peripheral Image Loader (pil):
------------------------------
Required properties:
-compatible: "qti,msm-imem-pil"
-reg: start address and size of PIL region in imem

Example:

	qti,msm-imem {
		compatible = "qti,msm-imem";
		reg = <0xdeadbeef 0x1000>; /* < start_address size > */
		ranges = <0x0 0xdeadbeef 0x1000>;
		#address-cells = <1>;
		#size-cells = <1>;

		pil@94c {
			compatible = "qti,msm-imem-pil";
			reg = <0x94c 200>;
		};
	};
+10 −2
Original line number Diff line number Diff line
@@ -253,6 +253,14 @@
        qti,msm-imem@fe805000 {
		compatible = "qti,msm-imem";
		reg = <0xfe805000 0x1000>; /* Address and size of IMEM */
		ranges = <0x0 0xfe805000 0x1000>;
		#address-cells = <1>;
		#size-cells = <1>;

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

	qcom,msm-rtb {
+8 −0
Original line number Diff line number Diff line
@@ -287,6 +287,14 @@
	qti,msm-imem@fe805000 {
		compatible = "qti,msm-imem";
		reg = <0xfe805000 0x1000>; /* Address and size of IMEM */
		ranges = <0x0 0xfe805000 0x1000>;
		#address-cells = <1>;
		#size-cells = <1>;

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

	qti,cache_erp {
+10 −2
Original line number Diff line number Diff line
@@ -174,6 +174,14 @@
	qti,msm-imem@fe805000 {
		compatible = "qti,msm-imem";
		reg = <0xfe805000 0x1000>; /* Address and size of IMEM */
		ranges = <0x0 0xfe805000 0x1000>;
		#address-cells = <1>;
		#size-cells = <1>;

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

	qcom,usbbam@f9a44000 {
+8 −0
Original line number Diff line number Diff line
@@ -241,6 +241,14 @@
	qti,msm-imem@fe805000 {
		compatible = "qti,msm-imem";
		reg = <0xfe805000 0x1000>; /* Address and size of IMEM */
		ranges = <0x0 0xfe805000 0x1000>;
		#address-cells = <1>;
		#size-cells = <1>;

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

	qcom,sps@f9984000 {
Loading