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

Commit 38d1b9a7 authored by Liam Mark's avatar Liam Mark
Browse files

ion: Support CMA heap with dma region using size property



Add support in the ION CMA heap to use a dma memory region configured
using the size property. This allows ION clients such as QSEECOM to use
a memory carveout which isn't hard coded at a fixed location.

Change-Id: Ic209e32b00a5005d5ccc00a48bd83e73a4c86b80
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 63585739
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -169,6 +169,10 @@ static int msm_ion_get_heap_dt_data(struct device_node *node,
				base = cma_get_base(dev->cma_area);
				size = cma_get_size(dev->cma_area);
				ret = 0;
			} else if (dev->dma_mem) {
				base = dma_get_device_base(dev, dev->dma_mem);
				size = dma_get_size(dev->dma_mem);
				ret = 0;
			}
		} else {
			base = of_translate_address(pnode, basep);