summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-09-20 18:24:35 -0500
committerGerald Van Baren <gvb@unssw.com>2011-10-15 09:35:09 -0400
commit50bf17bd15d439b183a29bdb453b65217cfbef3b (patch)
tree3b7f4398e676c8a72ddb92bb4625a9bb8caad039 /tools
parent3c927cccdc930e15cc993e27ac3bee8e15682423 (diff)
downloadu-boot-imx-50bf17bd15d439b183a29bdb453b65217cfbef3b.zip
u-boot-imx-50bf17bd15d439b183a29bdb453b65217cfbef3b.tar.gz
u-boot-imx-50bf17bd15d439b183a29bdb453b65217cfbef3b.tar.bz2
fdt: update fdt_alloc_phandle to use fdt_get_phandle
The device tree compiler, dtc, can use "phandle" and/or "linux,phandle" properties to specify the phandle for any node. By default, it uses both, but "linux,phandle" is deprecated. One day, we'd like to stop using "linux,phandle", but U-boot needs to support both properties equally first. fdt_alloc_phandle() generates a unique phandle, but it was only checking the "linux,phandle" properties. Instead, we use fdt_get_phandle(), which checks both properties automatically. This ensures that we support dtbs that only use "phandle". The side-effect is that fdt_alloc_phandle() now takes twice as long, since it has to check for two properties instead of one in each node that it searches. Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions