Timur Tabi 50bf17bd15 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>
2011-10-15 09:35:09 -04:00
..
2011-04-13 15:56:39 -04:00
2010-11-28 21:58:24 +01:00
2011-07-28 16:32:50 +02:00
2010-07-24 20:54:46 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-04-13 15:57:00 -04:00
2011-07-28 16:32:50 +02:00
2011-04-08 00:44:27 -04:00
2011-07-28 16:41:06 +02:00
2011-10-01 23:26:36 +02:00
2011-01-09 18:06:50 +01:00
2011-04-29 03:20:01 -05:00
2011-07-15 20:29:22 -05:00
2010-12-17 14:32:12 -06:00
2010-07-16 10:55:09 -05:00
2011-07-26 14:10:14 +02:00
2011-07-26 14:10:14 +02:00
2011-10-05 22:22:17 +02:00
2011-10-09 23:24:48 +02:00
2010-10-12 23:31:10 +02:00
2011-10-01 23:34:21 +02:00
2011-07-28 17:22:53 +02:00
2011-07-26 16:34:41 +02:00
2003-06-27 21:31:46 +00:00
2011-07-26 16:34:22 +02:00
2011-07-26 16:34:22 +02:00
2011-04-13 19:43:28 +10:00
2011-02-02 22:36:10 +01:00
2010-01-18 00:23:00 +01:00
2011-10-01 23:26:35 +02:00
2011-07-28 17:22:53 +02:00
2011-10-09 23:24:48 +02:00
2002-08-17 09:36:01 +00:00
2011-09-04 23:27:52 +02:00