From: Jerry Van Baren <vanbargw@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] libfdt release?
Date: Thu, 11 Oct 2007 19:35:45 -0400 [thread overview]
Message-ID: <470EB351.4070009@gmail.com> (raw)
In-Reply-To: <9917D225-2082-4900-BFD4-96490EA88C42@freescale.com>
Kumar Gala wrote:
>>> Yeah I was going through the u-boot mods and noticed a few additions.
>>>
>>> Pulled from the u-boot git commit logs:
>>>
>>> * add convenience function fdt_find_and_setprop()
>>
>> I don't think this belongs in libfdt itself - in the bootwrapper we'd
>> do this in devtree.c. u-boot can keep it's function outside of
>> libfdt.
>
> Agreed, I think u-boot should remove this in the future as the one user
> should move to a more generic mechanism for handling "fixups".
Makes sense. NBD.
>>> * Add fdt_find_node_by_type() and fdt_find_compatible_node() to LIBFDT
>>
>> fdt_find_node_by_type() should be subsumed by
>> fdt_node_offset_by_prop_value() which we already have upstream. I'm
>> working on a fdt_node_offset_by_compatible().
OK.
>>> * Replace fdt_node_offset() with fdt_find_node_by_path().
>>
>> There is no fdt_node_offset(), fdt_path_offset() they mean, maybe.
>> And why a gratuitous name change...?
>
> Jerry?
We needed the function (Detlev, IIRC). The gratuitous name change was
intended to be more descriptive. Perhaps if the correct original name
were used, we wouldn't have needed a gratuitous name change. ;-)
>>> * Add some utilities to manipulate the reserved memory map. (think
>>> your recent patch my cover that)
>>
>> Should do.
>>
>>> * libfdt: Make fdt_check_header() public
>>
>> Hrm. Why?
>
> Jerry?
Because we needed to check the validity of the header outside of libfdt
and decide whether we wanted to use the blob or not.
>>> * libfdt: Enhanced and published fdt_next_tag()
>>
>> Hrm. I'm not categorically opposed to publishing fdt_next_tag(), but
>> I'm disinclined to do so without good reason.
>
> Jerry?
>
> Hopefully Jerry will comment on why the additions were made to u-boot.
I needed it to implement my u-boot "fdt print" command, to step through
the tags so I could print them out in a human readable format (it
actually is dtc-input-compatible and, in most cases, matches the
original dtc input source code).
> David, one thing that would be extremely useful is "API" comments in
> libfdt.h for each of the functions.
Add my vote too. ;-)
> - k
HTH,
gvb
next parent reply other threads:[~2007-10-11 23:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <006E3CAD-11CB-4892-8BDB-9866677F371D@freescale.com>
[not found] ` <20071010061458.GA6135@localhost.localdomain>
[not found] ` <912BB32E-FD7D-4CBC-AE3D-3D358E97DECB@freescale.com>
[not found] ` <20071011041239.GF14873@localhost.localdomain>
[not found] ` <9917D225-2082-4900-BFD4-96490EA88C42@freescale.com>
2007-10-11 23:35 ` Jerry Van Baren [this message]
2007-10-11 23:56 ` [U-Boot-Users] libfdt release? Detlev Zundel
2007-10-12 4:28 ` David Gibson
2007-10-12 7:16 ` Wolfgang Grandegger
2007-10-15 3:20 ` David Gibson
2007-10-12 11:58 ` Jerry Van Baren
2007-10-15 4:12 ` David Gibson
2007-10-15 18:30 ` Kumar Gala
2007-10-15 18:51 ` Jerry Van Baren
2007-10-15 19:03 ` Kumar Gala
2007-10-15 19:23 ` Jerry Van Baren
2007-10-15 21:50 ` Kumar Gala
2007-10-15 19:21 ` Wolfgang Grandegger
2007-10-16 2:44 ` David Gibson
2007-10-16 7:03 ` Wolfgang Grandegger
2007-10-16 7:19 ` David Gibson
2007-10-23 14:39 ` Kumar Gala
2007-10-23 23:51 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=470EB351.4070009@gmail.com \
--to=vanbargw@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox