aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_fdt.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-11-24 05:27:10 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-10 17:23:15 -0500
commitf00abd94918c9780f9d2d961fc0e419c11457922 (patch)
tree47238d5fbfa609ecbf54edf3092eade902aa9ec6 /include/linux/of_fdt.h
parentf7b3a8355ba6cad251297844a0bdd08898ea36e0 (diff)
of/flattree: Merge earlyinit_dt_scan_root()
Merge common code between PowerPC and Microblaze Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r--include/linux/of_fdt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index ec2db8278c3f..828c3cdaea78 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -58,6 +58,8 @@ struct boot_param_header {
58}; 58};
59 59
60/* TBD: Temporary export of fdt globals - remove when code fully merged */ 60/* TBD: Temporary export of fdt globals - remove when code fully merged */
61extern int __initdata dt_root_addr_cells;
62extern int __initdata dt_root_size_cells;
61extern struct boot_param_header *initial_boot_params; 63extern struct boot_param_header *initial_boot_params;
62 64
63/* For scanning the flat device-tree at boot time */ 65/* For scanning the flat device-tree at boot time */
@@ -71,6 +73,10 @@ extern int of_flat_dt_is_compatible(unsigned long node, const char *name);
71extern unsigned long of_get_flat_dt_root(void); 73extern unsigned long of_get_flat_dt_root(void);
72extern void early_init_dt_check_for_initrd(unsigned long node); 74extern void early_init_dt_check_for_initrd(unsigned long node);
73 75
76/* Early flat tree scan hooks */
77extern int early_init_dt_scan_root(unsigned long node, const char *uname,
78 int depth, void *data);
79
74/* Other Prototypes */ 80/* Other Prototypes */
75extern void finish_device_tree(void); 81extern void finish_device_tree(void);
76extern void unflatten_device_tree(void); 82extern void unflatten_device_tree(void);