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>
This commit is contained in:
@@ -58,6 +58,8 @@ struct boot_param_header {
|
||||
};
|
||||
|
||||
/* TBD: Temporary export of fdt globals - remove when code fully merged */
|
||||
extern int __initdata dt_root_addr_cells;
|
||||
extern int __initdata dt_root_size_cells;
|
||||
extern struct boot_param_header *initial_boot_params;
|
||||
|
||||
/* 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);
|
||||
extern unsigned long of_get_flat_dt_root(void);
|
||||
extern void early_init_dt_check_for_initrd(unsigned long node);
|
||||
|
||||
/* Early flat tree scan hooks */
|
||||
extern int early_init_dt_scan_root(unsigned long node, const char *uname,
|
||||
int depth, void *data);
|
||||
|
||||
/* Other Prototypes */
|
||||
extern void finish_device_tree(void);
|
||||
extern void unflatten_device_tree(void);
|
||||
|
Reference in New Issue
Block a user