aboutsummaryrefslogtreecommitdiff
path: root/dtc.c
AgeCommit message (Collapse)AuthorFilesLines
2007-03-26DTC: Add support for a C-like #include "file" mechanism.Jon Loeliger1-17/+2
Keeps track of open files in a stack, and assigns a filenum to source positions for each lexical token. Modified error reporting to show source file as well. No policy on file directory basis has been decided. Still handles stdin. Tested on all arch/powerpc/boot/dts DTS files Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-03-19Improve options, #define default version.Jerry Van Baren1-5/+18
Add -h option for help Add -q quiet option to reduce or suppress the whining Create #define for the default version value. Signed-off-by: vanbaren@cideas.com <vanbaren@cideas.com>
2007-03-14Add support for flat device tree format version 17David Gibson1-1/+1
libfdt defined a new version of the flattened device tree format, version 17. It is backwards compatible with version 16, just adding an extra header field giving the size of the blob's structure blob. This patch adds support to dtc allowing it to read and write version 17 blobs. It also makes version 17 the default output version for blobs. At the same time we change the code to consistently using decimal numbers for versions. Previously we sometimes used 16 and sometimes 0x10 to refer to version 16. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2006-11-01Change default output blob version from 3 to 16Kim Phillips1-2/+2
Signed-off-by: Kim Phillips <Kim.Phillips@freescale.com> Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-06-07dtc: add setting of physical boot cpuMichael Neuling1-4/+10
dtc always sets the physical boot CPU to 0xfeedbeef. Add a -b option to set this. Also add warnings when using the wrong property with the wrong blob version. Signed-off-by: Michael Neuling <mikey@neuling.org>
2005-10-26Use names for output functions in the form dt_to_*() instead ofDavid Gibson1-3/+3
write_dt_*() for consistency with the dt_from_*() input functions.
2005-07-15Support for specifying memreserve ranges in the source format, based onDavid Gibson1-9/+9
a patch by Jon Loeliger <jdl AT freescale.com>, although tweaked substantially.
2005-06-08Initial commitDavid Gibson1-0/+198