diff options
author | Scott Wood <scottwood@freescale.com> | 2010-08-12 18:37:39 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-08-19 21:21:41 -0500 |
commit | 6395f318e9ddf26817a01f0b3877af0e3e47d056 (patch) | |
tree | 5922044bd8856098212ff01d68763273b04d18b8 /board/a3000 | |
parent | b80d30546e88c70985094d81297d449b2bc59033 (diff) | |
download | u-boot-imx-6395f318e9ddf26817a01f0b3877af0e3e47d056.zip u-boot-imx-6395f318e9ddf26817a01f0b3877af0e3e47d056.tar.gz u-boot-imx-6395f318e9ddf26817a01f0b3877af0e3e47d056.tar.bz2 |
fdt: call fdt_parent_offset fewer times while translating addresses
fdt_parent_offset() is an expensive operation, so we'd like to reduce
unnecessary calls to it.
Further, the practice of iterating up to the root if address/size cells
aren't found was apparently done for Linux for compatibility with certain
buggy Open Firmware implementations, and U-Boot inherited the code. The
compliant behavior is to treat a missing #address-cells as 2, and a missing
#size-cells as 1 -- never looking anywhere but the immediate parent of the
node of interest.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/a3000')
0 files changed, 0 insertions, 0 deletions