Re: [U-Boot] [PATCH v3] fdt: Add function to alloc phandle values

2010-07-26 Thread Kumar Gala
On Jul 17, 2010, at 10:22 PM, Jerry Van Baren wrote: > On 07/10/2010 09:25 AM, Kumar Gala wrote: >> If we are creating reference (handles) to nodes in a device tree we need >> to first create a new phandle in node and this needs a new phandle >> value. So we search through the whole dtb to find

Re: [U-Boot] [PATCH v3] fdt: Add function to alloc phandle values

2010-07-17 Thread Jerry Van Baren
On 07/10/2010 09:25 AM, Kumar Gala wrote: > If we are creating reference (handles) to nodes in a device tree we need > to first create a new phandle in node and this needs a new phandle > value. So we search through the whole dtb to find the max phandle value > and return the next greater value fo

Re: [U-Boot] [PATCH v3] fdt: Add function to alloc phandle values

2010-07-11 Thread Kumar Gala
On Jul 10, 2010, at 1:44 PM, Timur Tabi wrote: > On Sat, Jul 10, 2010 at 8:25 AM, Kumar Gala wrote: >> If we are creating reference (handles) to nodes in a device tree we need >> to first create a new phandle in node and this needs a new phandle >> value. So we search through the whole dtb to f

Re: [U-Boot] [PATCH v3] fdt: Add function to alloc phandle values

2010-07-10 Thread Timur Tabi
On Sat, Jul 10, 2010 at 8:25 AM, Kumar Gala wrote: > If we are creating reference (handles) to nodes in a device tree we need > to first create a new phandle in node and this needs a new phandle > value.  So we search through the whole dtb to find the max phandle value > and return the next greate

[U-Boot] [PATCH v3] fdt: Add function to alloc phandle values

2010-07-10 Thread Kumar Gala
If we are creating reference (handles) to nodes in a device tree we need to first create a new phandle in node and this needs a new phandle value. So we search through the whole dtb to find the max phandle value and return the next greater value for a new phandle allocation. Signed-off-by: Kumar