[U-Boot] [PATCH v3 05/13] fdtdec: Implement fdtdec_add_reserved_memory()
sjg at google.com
sjg at google.com
Fri Apr 12 21:50:03 UTC 2019
From: Thierry Reding <treding at nvidia.com>
This function can be used to add subnodes in the /reserved-memory node.
Reviewed-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Thierry Reding <treding at nvidia.com>
---
Changes in v3:
- use fdt_generate_phandle() instead of fdtdec_generate_phandle()
- add device tree bindings for /reserved-memory
- add examples to code comments
Changes in v2:
- split fdt_{addr,size}_unpack() helpers into separate patch
- use name at x,y notation only if the upper cell is > 0
- use debug() instead of printf() to save code size
- properly compute number of cells in reg property
- fix carveout size computations, was off by one
- use #size-cells where appropriate
.../reserved-memory/reserved-memory.txt | 136 ++++++++++++++++++
include/fdtdec.h | 48 +++++++
lib/fdtdec.c | 131 +++++++++++++++++
3 files changed, 315 insertions(+)
create mode 100644
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list