[U-Boot] [PATCH v3] fdt: Add function to alloc phandle values
Kumar Gala
galak at kernel.crashing.org
Sun Jul 11 17:04:46 CEST 2010
On Jul 10, 2010, at 1:44 PM, Timur Tabi wrote:
> 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.
I'm replacing fdt_get_max_phandle w/fdt_alloc_phandle in our tree's. As what we are doing is allocating a phandle value.
- k
More information about the U-Boot
mailing list