Commit 161d2e4e authored by Simon Glass's avatar Simon Glass
Browse files

x86: Split up arch_cpu_init()



At present we do more in this function than we should. Split out the
post-driver-model part into a separate function.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent d4c671cc
......@@ -115,6 +115,14 @@ static void set_spi_speed(void)
}
int arch_cpu_init(void)
{
post_code(POST_CPU_INIT);
timer_set_base(rdtsc());
return x86_cpu_init_f();
}
int arch_cpu_init_dm(void)
{
const void *blob = gd->fdt_blob;
struct pci_controller *hose;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment