From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sat, 15 Sep 2012 11:19:18 -0400 Subject: [U-Boot] [PATCH 1/2] libfdt: Add support for appending the values to a existing property In-Reply-To: <6AE080B68D46FC4BA2D2769E68D765B708059FF7@039-SN2MPN1-023.039d.mgd.msft.net> References: <1346114340-5510-1-git-send-email-kim.phillips@freescale.com> <5054926C.4080505@gmail.com> <6AE080B68D46FC4BA2D2769E68D765B708059FF7@039-SN2MPN1-023.039d.mgd.msft.net> Message-ID: <50549C76.4020804@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/15/2012 11:00 AM, Tabi Timur-B04825 wrote: > On Sat, Sep 15, 2012 at 9:36 AM, Jerry Van Baren wrote: > >> Queued up 2 of 2 patches to the u-boot-fdt "next" branch. I'll issue a >> pull request when the merge window opens. > > I thought libfdt patches were suppose to go to dtc.git? That is where they came from. Since the u-boot libfdt is a subset of the whole dtc.git repository (just the libfdt part), I've been cherry picking only the libfdt/* patches (with the help of others). I see David has another patch for the libfdt library that I probably should pick up so that we stay in sync (18 lines of code by counting semicolons). commit be6026838e45b67800ac803f4ad8cca3cde57d6d Author: David Gibson Date: Fri Jun 1 14:12:38 2012 +1000 libfdt: Add helper function to create a trivial, empty tree The libfdt read/write functions are now usable enough that it's become a moderately common pattern to use them to build and manipulate a device tree from scratch. For example, we do so ourself in our rw_tree1 testcase, and qemu is starting to use this model when building device trees for some targets such as e500. However, the read/write functions require some sort of valid tree to begin with, so this necessitates either having a trivial canned dtb to begin with or, more commonly, creating an empty tree using the serial-write functions first. This patch adds a helper function which uses the serial-write functions to create a trivial, empty but complete and valid tree in a supplied buffer, ready for manipulation with the read/write functions. Signed-off-by: David Gibson