summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/ivybridge/model_206ax.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 16:11:24 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-01-24 12:08:17 +0800
commit9d156b57257cfbf2b5343e5c9cbb4111dee4291f (patch)
tree8f8921caf1d3540cb76a6af18e495202590ddeca /arch/x86/cpu/ivybridge/model_206ax.c
parentbba22a97a7e143560b137c9a2d9fcf6dbd038470 (diff)
downloadu-boot-imx-9d156b57257cfbf2b5343e5c9cbb4111dee4291f.zip
u-boot-imx-9d156b57257cfbf2b5343e5c9cbb4111dee4291f.tar.gz
u-boot-imx-9d156b57257cfbf2b5343e5c9cbb4111dee4291f.tar.bz2
x86: ivybridge: Move CPU init code into the driver
Use the CPU driver's probe() method to perform the CPU init. This will happen automatically when the first CPU is probed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/ivybridge/model_206ax.c')
-rw-r--r--arch/x86/cpu/ivybridge/model_206ax.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/model_206ax.c b/arch/x86/cpu/ivybridge/model_206ax.c
index 9fa1226..6ab6ede 100644
--- a/arch/x86/cpu/ivybridge/model_206ax.c
+++ b/arch/x86/cpu/ivybridge/model_206ax.c
@@ -403,7 +403,7 @@ static void configure_mca(void)
static unsigned ehci_debug_addr;
#endif
-int model_206ax_init(struct x86_cpu_priv *cpu)
+static int model_206ax_init(void)
{
int ret;
@@ -480,6 +480,9 @@ static int model_206ax_get_count(struct udevice *dev)
static int cpu_x86_model_206ax_probe(struct udevice *dev)
{
+ if (dev->seq == 0)
+ model_206ax_init();
+
return 0;
}