summaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
author David Gibson <david@gibson.dropbear.id.au> 2007-03-14 11:02:40 +1100
committer Jon Loeliger <jdl@freescale.com> 2007-03-14 15:36:37 -0500
commit46c88dfcca9aedda24364e082374dba1f6182a53 (patch)
tree484326ca6b53e1b35efc33ab1f01ed203da800e3 /dtc.c
parent6ae55f9f9bf5db8c05f851db27ed923451b44181 (diff)
Add support for flat device tree format version 17
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>
Diffstat (limited to 'dtc.c')
-rw-r--r--dtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc.c b/dtc.c
index fe4637c..f15d90f 100644
--- a/dtc.c
+++ b/dtc.c
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
int opt;
FILE *inf = NULL;
FILE *outf = NULL;
- int outversion = 0x10;
+ int outversion = 17;
int reservenum = 1;
int boot_cpuid_phys = 0xfeedbeef;