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:
François Revol
2013-02-18 02:42:03 +01:00
parent 05e65058fe
commit 4c50a9bcfd
+3 -3
View File
@@ -191,6 +191,9 @@ start_raw(int argc, const char **argv)
serial_init(gFDT);
console_init();
// initialize the OpenFirmware wrapper
of_init(NULL);
cpu_init();
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);
}
}
// also initialize the OpenFirmware wrapper
of_init(NULL);
}
// if we get passed a uimage, try to find the second blob