diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-05 22:25:17 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-17 04:27:41 +0300 |
commit | 161d2e4e5b98310c4910a353e432dbabcb1bd630 (patch) | |
tree | 6517572cb7646121aa1ff6968786fa8e5756bd28 /arch/x86/cpu/ivybridge/cpu.c | |
parent | d4c671cc2742927d3aef830b3b56e1ca2377c887 (diff) | |
download | u-boot-161d2e4e5b98310c4910a353e432dbabcb1bd630.tar.xz |
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: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/ivybridge/cpu.c')
-rw-r--r-- | arch/x86/cpu/ivybridge/cpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index 5fd3753c47..e6ef4815a0 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/arch/x86/cpu/ivybridge/cpu.c @@ -116,6 +116,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; int node; |