diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2019-12-03 14:04:46 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-12-06 12:09:25 +0100 |
commit | 949b5a969d107613b61a1e5eaf9e43c75a97f42c (patch) | |
tree | 80d8bf824579de0f032c64b4e908c146e68299db /include | |
parent | 1fae23899c7d6a7f44dec6a963d6c74ce5fe5c19 (diff) | |
download | u-boot-949b5a969d107613b61a1e5eaf9e43c75a97f42c.zip u-boot-949b5a969d107613b61a1e5eaf9e43c75a97f42c.tar.gz u-boot-949b5a969d107613b61a1e5eaf9e43c75a97f42c.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index cefb2b2..2286ea7 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -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) |