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

Timur Tabi timur at freescale.com
Sat Jul 10 20:44:37 CEST 2010


On Sat, Jul 10, 2010 at 8:25 AM, Kumar Gala <galak at kernel.crashing.org> 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 for a new phandle allocation.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>

I still think you should merge my fdt_get_max_phandle() function into
this patch.  The two functions are related and can share code.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list