]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Split up arch_cpu_init()
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:17 +0000 (12:25 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:22 +0000 (21:47 +0200)
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: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/ivybridge/cpu.c

index 5fd3753c47f42cd972a0cacb28533825fce6df89..e6ef4815a09f85b80f6188c1e4fb13f753363d2b 100644 (file)
@@ -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;