Commit c337e1afd3bd00622a102b4dda10b109d898281f

Authored by Bin Meng
Committed by Simon Glass
1 parent 1a6bd4717f

cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers

It turns out commit c0434407b595 broke some boards which have DM CPU
driver with CONFIG_DISPLAY_CPUINFO option on. These boards just fail
to boot when print_cpuinfo() is called during boot.

Fixes: c0434407b595 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active")
Reported-by: Stefan Roese <sr@denx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>

Showing 4 changed files with 4 additions and 0 deletions Side-by-side Diff

arch/x86/cpu/baytrail/cpu.c
... ... @@ -203,5 +203,6 @@
203 203 .bind = cpu_x86_bind,
204 204 .probe = cpu_x86_baytrail_probe,
205 205 .ops = &cpu_x86_baytrail_ops,
  206 + .flags = DM_FLAG_PRE_RELOC,
206 207 };
arch/x86/cpu/broadwell/cpu.c
... ... @@ -764,5 +764,6 @@
764 764 .probe = cpu_x86_broadwell_probe,
765 765 .ops = &cpu_x86_broadwell_ops,
766 766 .priv_auto_alloc_size = sizeof(struct cpu_broadwell_priv),
  767 + .flags = DM_FLAG_PRE_RELOC,
767 768 };
arch/x86/cpu/cpu_x86.c
... ... @@ -94,5 +94,6 @@
94 94 .of_match = cpu_x86_ids,
95 95 .bind = cpu_x86_bind,
96 96 .ops = &cpu_x86_ops,
  97 + .flags = DM_FLAG_PRE_RELOC,
97 98 };
arch/x86/cpu/ivybridge/model_206ax.c
... ... @@ -478,5 +478,6 @@
478 478 .bind = cpu_x86_bind,
479 479 .probe = cpu_x86_model_206ax_probe,
480 480 .ops = &cpu_x86_model_206ax_ops,
  481 + .flags = DM_FLAG_PRE_RELOC,
481 482 };