summaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2006-05-31 08:31:51 +1000
committerJon Loeliger <jdl@freescale.com>2006-06-07 09:42:15 -0500
commit38e8f8fd88dae07ef8ada9d6baa41b06a4d9ac9f (patch)
treec97e2c644cb65e0019b7784281b2e98ae9195d68 /dtc.h
parent05ae3d8eebdad2b8da6e02eeca3baa3cc54fe5f3 (diff)
downloaddtc-38e8f8fd88dae07ef8ada9d6baa41b06a4d9ac9f.tar.gz
dtc: add setting of physical boot cpu
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>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/dtc.h b/dtc.h
index 3d32b61..42e9de0 100644
--- a/dtc.h
+++ b/dtc.h
@@ -178,7 +178,7 @@ struct node *chain_node(struct node *first, struct node *list);
void add_property(struct node *node, struct property *prop);
void add_child(struct node *parent, struct node *child);
-int check_device_tree(struct node *dt);
+int check_device_tree(struct node *dt, int outversion, int boot_cpuid_phys);
/* Boot info (tree plus memreserve information */
@@ -207,8 +207,10 @@ struct boot_info *build_boot_info(struct reserve_info *reservelist,
/* Flattened trees */
-void dt_to_blob(FILE *f, struct boot_info *bi, int version);
-void dt_to_asm(FILE *f, struct boot_info *bi, int version);
+void dt_to_blob(FILE *f, struct boot_info *bi, int version,
+ int boot_cpuid_phys);
+void dt_to_asm(FILE *f, struct boot_info *bi, int version,
+ int boot_cpuid_phys);
struct boot_info *dt_from_blob(FILE *f);