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

Commit 6f9c6f45 authored by Nitin Rawat's avatar Nitin Rawat
Browse files

ARM: dts: msm: Add IOMMU Geometry property for storage

Add IOMMU Geometry property to help save SMMU page
table memory saving for UFS/eMMC. No functional
change but helps saving memory table space.

Change-Id: I94f9c4c58ca58f3491209bb8f12c1f080810dceb
parent 9da229fe
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -2111,6 +2111,23 @@
		iommus = <&apps_smmu 0x60 0x0>;
		qcom,iommu-dma = "fastmap";

		/*
		 * iommu-dma-addr-pool- Indicate the range of data addresses which will be
		 * used in dma allocation.
		 *
		 * iommu-geometry -  This is specific for fastmap which Allow clients
		 * to save SMMU page table memory.
		 *
		 * The 2nd parameter indicates size of the smmu page table memory.
		 * If its exceeds beyond this size, last unused entry from page table
		 * memory will be invalidated.
		 *
		 * It's better to provide range of dma address, hence provide
		 * iommu-dma-addr-pool property along with iommu-geometry property.
		 */

		qcom,iommu-dma-addr-pool = <0x40000000 0x40000000>;
		qcom,iommu-geometry = <0x40000000 0x40000000>;
		reset-gpios = <&tlmm 156 GPIO_ACTIVE_LOW>;

		resets = <&gcc GCC_UFS_PHY_BCR>;
@@ -2137,6 +2154,24 @@
		iommus = <&apps_smmu 0x20 0x0>;
		qcom,iommu-dma = "fastmap";

		/*
		 * iommu-dma-addr-pool- Indicate the range of data addresses which will be
		 * used in dma allocation.
		 *
		 * iommu-geometry -  This is specific for fastmap which Allow clients
		 * to save SMMU page table memory.
		 *
		 * The 2nd parameter indicates size of the smmu page table memory.
		 * If its exceeds beyond this size, last unused entry from page table
		 * memory will be invalidated.
		 *
		 * It's better to provide range of dma address, hence provide
		 * iommu-dma-addr-pool property along with iommu-geometry property.
		 */

		qcom,iommu-dma-addr-pool = <0x40000000 0x40000000>;
		qcom,iommu-geometry = <0x40000000 0x40000000>;

		interrupts = <GIC_SPI 348 IRQ_TYPE_LEVEL_HIGH>,
				<GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>;
		interrupt-names = "hc_irq", "pwr_irq";