]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdtdec: Honor #address-cells and #size-cells in fdtdec_add_reserved_memory()
authorBin Meng <bin.meng@windriver.com>
Wed, 20 May 2020 06:38:33 +0000 (23:38 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Jun 2020 02:52:11 +0000 (20:52 -0600)
commitf6704c79946c15fe327ff44e50f9559cd559d7ef
treed4e12038ef47115cf8deb1923962b998358bdf61
parenta9ad113df005b4ecd7b719736c228b1da69aa8d6
fdtdec: Honor #address-cells and #size-cells in fdtdec_add_reserved_memory()

At present fdtdec_add_reserved_memory() calls fdtdec_get_addr_size()
to get address and size for the subnodes of /reserved-memory node.

We should honor #address-cells and #size-cells properties in the
parent node.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c