U-Boot: move of_init() call before cpu_init()
So we can use the OF wrapper there as well and copy code verbatim from the OF platform.
This commit is contained in:
@@ -191,6 +191,9 @@ start_raw(int argc, const char **argv)
|
|||||||
|
|
||||||
serial_init(gFDT);
|
serial_init(gFDT);
|
||||||
console_init();
|
console_init();
|
||||||
|
// initialize the OpenFirmware wrapper
|
||||||
|
of_init(NULL);
|
||||||
|
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
if (args.platform.fdt_data) {
|
if (args.platform.fdt_data) {
|
||||||
@@ -223,9 +226,6 @@ start_raw(int argc, const char **argv)
|
|||||||
args.platform.boot_tgz_data, args.platform.boot_tgz_size);
|
args.platform.boot_tgz_data, args.platform.boot_tgz_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// also initialize the OpenFirmware wrapper
|
|
||||||
of_init(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we get passed a uimage, try to find the second blob
|
// if we get passed a uimage, try to find the second blob
|
||||||
|
|||||||
Reference in New Issue
Block a user