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

Commit dd86c18c authored by Laura Abbott's avatar Laura Abbott Committed by Stephen Boyd
Browse files

msm: Add bindings for memblock_reserve memory



Under some circumstances, drivers may wish to have a region of
memory set aside with memblock_reserved instead of memblock_remove.
Add bindings for this reservation.

Change-Id: I41f4eeebf2f1a38374a7c8a0b65f6907d6e38faa
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 7b34af76
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -69,3 +69,20 @@ Required parameters:
This region is assumed to be a part of a separate hole that has been removed
and this binding specifies the fixed location and size of the region within
that hole.


Some drivers may only wish to reserve memory from the system. Reserved memory
is still tracked internally by the Linux page allocator. The memory is reserved
from the buddy allocator at bootup but may be freed back at a later point in
time with memblock_free and free_bootmem_late.

Required parameters:
-qcom,memblock-reserve: base and size of block to be reserved. Drivers should
call memblock_is_reserved before attempting to use the base address to ensure
the memory was completely reserved.

	qcom,a-driver {
		compatible = "qcom,a-driver";
		/* reserve a 4MB region @ 0x200000 for use later */
		qcom,memblock-reserve = <0x200000 0x400000>;
	};