summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/broadwell/cpu.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-10-14 01:07:19 -0700
committerSimon Glass <sjg@chromium.org>2018-11-14 09:16:28 -0800
commitc337e1afd3bd00622a102b4dda10b109d898281f (patch)
treeb096503107b3e357ccdf643be0e098d86ffa939e /arch/x86/cpu/broadwell/cpu.c
parent1a6bd4717fe68ca212abca21a0e08af186fdb442 (diff)
downloadu-boot-c337e1afd3bd00622a102b4dda10b109d898281f.tar.gz
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>
Diffstat (limited to 'arch/x86/cpu/broadwell/cpu.c')
-rw-r--r--arch/x86/cpu/broadwell/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/cpu/broadwell/cpu.c b/arch/x86/cpu/broadwell/cpu.c
index 02b3169cf5..232fa40eb5 100644
--- a/arch/x86/cpu/broadwell/cpu.c
+++ b/arch/x86/cpu/broadwell/cpu.c
@@ -764,4 +764,5 @@ U_BOOT_DRIVER(cpu_x86_broadwell_drv) = {
.probe = cpu_x86_broadwell_probe,
.ops = &cpu_x86_broadwell_ops,
.priv_auto_alloc_size = sizeof(struct cpu_broadwell_priv),
+ .flags = DM_FLAG_PRE_RELOC,
};