mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
common: fdt_support: add support for setting usable memory
Add support for setting linux,usable-memory property in the memory node of device tree for the kernel [1]. This property holds a base address and size, describing a limited region in which memory may be considered available for use by the kernel. Memory outside of this range is not available for use. [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/chosen.txt Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
This commit is contained in:
parent
1fae23899c
commit
949b5a969d
2 changed files with 36 additions and 0 deletions
|
@ -94,6 +94,7 @@ int fdt_fixup_memory(void *blob, u64 start, u64 size);
|
|||
*/
|
||||
#ifdef CONFIG_ARCH_FIXUP_FDT_MEMORY
|
||||
int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks);
|
||||
int fdt_set_usable_memory(void *blob, u64 start[], u64 size[], int banks);
|
||||
#else
|
||||
static inline int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[],
|
||||
int banks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue