]> git.baikalelectronics.ru Git - uboot.git/commit
fdt: Correct fdt_get_base_address()
authorSimon Glass <sjg@chromium.org>
Tue, 4 Jul 2017 19:31:20 +0000 (13:31 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 1 Aug 2017 02:58:00 +0000 (11:58 +0900)
commit47659bfa08cb14b966d4f7aa1b752e7cf7b3c81e
tree71816afa953a4aff86ba66589e19cad6ce284ca7
parent42fcf86c1da77abb69da45b83fdeed3c2a764d11
fdt: Correct fdt_get_base_address()

This function appears to obtain the value of the 'ranges' property rather
than 'reg'. As such it does not behave as documented or expected.

In addition it picks up the second field of the property which is the size
(with prop += naddr) rather than the first which is the address.

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c