From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Fri, 12 Apr 2019 14:50:00 -0700 Subject: [U-Boot] [PATCH v3 06/13] fdtdec: Implement carveout support functions In-Reply-To: <20190321181010.27005-7-thierry.reding@gmail.com> References: <20190321181010.27005-7-thierry.reding@gmail.com> <20190321181010.27005-1-thierry.reding@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Thierry Reding The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used to read a carveout from a given node or add a carveout to a given node using the standard device tree bindings (involving reserved-memory nodes and the memory-region property). Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v3: - add examples to code comments Changes in v2: - use debug() instead of printf() to save code size - fix carveout size computations, was off by one - use fdtdec_get_addr_size_auto_noparent() include/fdtdec.h | 81 ++++++++++++++++++++++++++++++++++++++++++++ lib/fdtdec.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+) Applied to u-boot-dm, thanks!