Skip to content
Snippets Groups Projects
Commit ac643e03 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Bring up northbridge, pch and lpc after the CPUs


These devices currently need to be inited early in boot. Once we have the
init in the right places (with each device doing its own init and no
problems with ordering) we should be able to remove this. For now it is
needed to keep things working.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 8b674418
No related branches found
No related tags found
No related merge requests found
...@@ -709,8 +709,24 @@ static int x86_init_cpus(void) ...@@ -709,8 +709,24 @@ static int x86_init_cpus(void)
int cpu_init_r(void) int cpu_init_r(void)
{ {
if (ll_boot_init()) struct udevice *dev;
return x86_init_cpus(); int ret;
if (!ll_boot_init())
return 0;
ret = x86_init_cpus();
if (ret)
return ret;
/*
* Set up the northbridge, PCH and LPC if available. Note that these
* may have had some limited pre-relocation init if they were probed
* before relocation, but this is post relocation.
*/
uclass_first_device(UCLASS_NORTHBRIDGE, &dev);
uclass_first_device(UCLASS_PCH, &dev);
uclass_first_device(UCLASS_LPC, &dev);
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment